Re: [PATCH] iio: pressure: Fixes SPI support for BMP3xx devices

From: Andy Shevchenko
Date: Mon Mar 11 2024 - 06:05:20 EST


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.

--
With Best Regards,
Andy Shevchenko