[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240311155829.00004478@Huawei.com>
Date: Mon, 11 Mar 2024 15:58:29 +0000
From: Jonathan Cameron <Jonathan.Cameron@...wei.com>
To: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
CC: Vasileios Amoiridis <vassilisamir@...il.com>, <jic23@...nel.org>,
<lars@...afoo.de>, <ang.iglesiasg@...il.com>, <phil@...pberrypi.com>,
<579lpy@...il.com>, <linux-iio@...r.kernel.org>,
<linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] iio: pressure: Fixes SPI support for BMP3xx devices
On Mon, 11 Mar 2024 12:05:07 +0200
Andy Shevchenko <andriy.shevchenko@...ux.intel.com> wrote:
> On Mon, Mar 11, 2024 at 01:54:32AM +0100, Vasileios Amoiridis wrote:
> > Bosch does not use unique BMPxxx_CHIP_ID for the different versions of
> > the device which leads to misidentification of devices if their ID is
> > used. Use a new value in the chip_info structure instead of the
> > BMPxxx_CHIP_ID, in order to choose the regmap_bus to be used.
>
> ...
>
> > const struct regmap_config *regmap_config;
> > + int spi_read_extra_byte;
>
> Why is it int and not boolean?
> Also, please run `pahole` to see the best place for a new member.
Whilst that's good in general, there aren't many of these structs (4ish)
so if the 'cheapest' positioning isn't natural or hurts readability
ignore what you get from pahole.
Jonathan
>
Powered by blists - more mailing lists