From 26b2ec2e9a27f881998b830fd5158f8a30de82a1 Mon Sep 17 00:00:00 2001 From: Nikita Yushchenko Date: Mon, 10 Jan 2022 18:24:32 +0300 Subject: 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 Acked-by: Andy Shevchenko Link: https://lore.kernel.org/r/20220110152432.3799227-1-nikita.yoush@cogentembedded.com Signed-off-by: Jonathan Cameron --- drivers/iio/common/st_sensors/Kconfig | 2 -- 1 file changed, 2 deletions(-) (limited to 'drivers/iio/common/st_sensors/Kconfig') diff --git a/drivers/iio/common/st_sensors/Kconfig b/drivers/iio/common/st_sensors/Kconfig index 9364ec7a811f..eda8f347fda5 100644 --- a/drivers/iio/common/st_sensors/Kconfig +++ b/drivers/iio/common/st_sensors/Kconfig @@ -13,5 +13,3 @@ config IIO_ST_SENSORS_SPI config IIO_ST_SENSORS_CORE tristate - select IIO_ST_SENSORS_I2C if I2C - select IIO_ST_SENSORS_SPI if SPI_MASTER -- cgit