iio: st_sensors: don't always auto-enable I2C and SPI interface drivers
authorNikita Yushchenko <nikita.yoush@cogentembedded.com>
Mon, 10 Jan 2022 15:24:32 +0000 (18:24 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 23 Jan 2022 18:03:35 +0000 (18:03 +0000)
commit26b2ec2e9a27f881998b830fd5158f8a30de82a1
tree8c661384116c266d6d1af1b5e8403463351b7d0c
parent2553340bd208cc2e54a9e6a27d948a2b51dbf3a1
iio: st_sensors: don't always auto-enable I2C and SPI interface drivers

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 possible to explicitly disable drivers
that are not needed for a particular target.

Signed-off-by: Nikita Yushchenko <nikita.yoush@cogentembedded.com>
Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20220110152432.3799227-1-nikita.yoush@cogentembedded.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/Kconfig
drivers/iio/common/st_sensors/Kconfig
drivers/iio/gyro/Kconfig
drivers/iio/imu/st_lsm9ds0/Kconfig
drivers/iio/magnetometer/Kconfig
drivers/iio/pressure/Kconfig