Re: [PATCH v2] iio: stm: don't always auto-enable I2C and SPI interface drivers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jan 10, 2022 at 9:30 AM Nikita Yushchenko
<nikita.yoush@xxxxxxxxxxxxxxxxxx> wrote:
>
> This patch makes I2C and SPI interface drivers for STMicroelectronics
> sensor chips individually selectable via Kconfig.
>
> The default is kept unchanged - I2C and SPI interface drivers are still
> selected by default if the corresponding bus support is available.
>
> However, the patch makes it is possible to explicitly disable drivers

it possible

> that are not needed for particular target.

a particular

...

>  config IIO_ST_LSM9DS0_I2C

> +       tristate "STMicroelectronics LSM9DS0 IMU I2C interface"
> +       depends on I2C && IIO_ST_LSM9DS0

> +       default I2C && IIO_ST_LSM9DS0

Have you tested this for the case
I2C=y
IIO_ST_LSM9DS0=m

So, what is the result?

-- 
With Best Regards,
Andy Shevchenko



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux