mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-22 07:27:12 +08:00
iio: imu: st_lsm6dsx: don't always auto-enable I2C, I3C and SPI interface drivers
This patch makes I2C, I3C and SPI interface drivers for ST lsm6dsx individually selectable via Kconfig. The default is kept unchanged - I2C, I3C 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: Sean Nyekjaer <sean@geanix.com> Link: https://patch.msgid.link/20241203-lsm6dsx-v1-1-6d7893443bc8@geanix.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
committed by
Jonathan Cameron
parent
c3084fada9
commit
804eb393d4
@@ -6,9 +6,6 @@ config IIO_ST_LSM6DSX
|
||||
select IIO_BUFFER
|
||||
select IIO_TRIGGERED_BUFFER
|
||||
select IIO_KFIFO_BUF
|
||||
select IIO_ST_LSM6DSX_I2C if (I2C)
|
||||
select IIO_ST_LSM6DSX_SPI if (SPI_MASTER)
|
||||
select IIO_ST_LSM6DSX_I3C if (I3C)
|
||||
help
|
||||
Say yes here to build support for STMicroelectronics LSM6DSx imu
|
||||
sensor.
|
||||
@@ -42,16 +39,19 @@ config IIO_ST_LSM6DSX
|
||||
will be called st_lsm6dsx.
|
||||
|
||||
config IIO_ST_LSM6DSX_I2C
|
||||
tristate
|
||||
depends on IIO_ST_LSM6DSX
|
||||
tristate "ST_LSM6DSx driver for STM 6-axis IMU MEMS sensors I2C Interface"
|
||||
depends on I2C && IIO_ST_LSM6DSX
|
||||
default I2C && IIO_ST_LSM6DSX
|
||||
select REGMAP_I2C
|
||||
|
||||
config IIO_ST_LSM6DSX_SPI
|
||||
tristate
|
||||
depends on IIO_ST_LSM6DSX
|
||||
tristate "ST_LSM6DSx driver for STM 6-axis IMU MEMS sensors SPI Interface"
|
||||
depends on SPI_MASTER && IIO_ST_LSM6DSX
|
||||
default SPI_MASTER && IIO_ST_LSM6DSX
|
||||
select REGMAP_SPI
|
||||
|
||||
config IIO_ST_LSM6DSX_I3C
|
||||
tristate
|
||||
depends on IIO_ST_LSM6DSX
|
||||
tristate "ST_LSM6DSx driver for STM 6-axis IMU MEMS sensors I3C Interface"
|
||||
depends on I3C && IIO_ST_LSM6DSX
|
||||
default I3C && IIO_ST_LSM6DSX
|
||||
select REGMAP_I3C
|
||||
|
||||
Reference in New Issue
Block a user