Skip to contentSkip to conversation

iio: accel: st_accel: add !SENSORS_LIS3LV02D depedency

PATCH In review Arnd Bergmann 2 participants 2 messages Jan 20, 2017 – Jan 21, 2017 IIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iio: accel: st_accel: add !SENSORS_LIS3LV02D depedency

warning: (IIO_ST_ACCEL_3AXIS) selects IIO_ST_ACCEL_SPI_3AXIS which has unmet direct dependencies (IIO && !SENSORS_LIS3_SPI && IIO_ST_ACCEL_3AXIS && IIO_ST_SENSORS_SPI)

Fixes 762227721fe6 ("iio: accel: st_accel: handle deprecated bindings")
---
 drivers/iio/accel/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/iio/accel/Kconfig +1 -0
index ea295fe0f561..590ba8835fdc 100644
@@ -120,6 +120,7 @@ config HID_SENSOR_ACCEL_3D
 config IIO_ST_ACCEL_3AXIS
 	tristate "STMicroelectronics accelerometers 3-Axis Driver"
 	depends on (I2C || SPI_MASTER) && SYSFS
+	depends on !SENSORS_LIS3LV02D
 	select IIO_ST_SENSORS_CORE
 	select IIO_ST_ACCEL_I2C_3AXIS if (I2C)
 	select IIO_ST_ACCEL_SPI_3AXIS if (SPI_MASTER)
Signature · 1 line
2.9.0
maintainer
#1 lore raw
Quoted 4 lines · Arnd Bergmann

warning: (IIO_ST_ACCEL_3AXIS) selects IIO_ST_ACCEL_SPI_3AXIS which has unmet direct dependencies (IIO && !SENSORS_LIS3_SPI && IIO_ST_ACCEL_3AXIS && IIO_ST_SENSORS_SPI)

Fixes 762227721fe6 ("iio: accel: st_accel: handle deprecated bindings")

At least at first glance, this is a different approach to fixing the issue from the one Linus took. I think that one has already been picked up by Greg (or will be shortly). Linus, please confirm this is the same issue.

thanks,

Jonathan

Quoted 17 lines
---
 drivers/iio/accel/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/iio/accel/Kconfig +1 -0
index ea295fe0f561..590ba8835fdc 100644
@@ -120,6 +120,7 @@ config HID_SENSOR_ACCEL_3D
 config IIO_ST_ACCEL_3AXIS
 	tristate "STMicroelectronics accelerometers 3-Axis Driver"
 	depends on (I2C || SPI_MASTER) && SYSFS
+	depends on !SENSORS_LIS3LV02D
 	select IIO_ST_SENSORS_CORE
 	select IIO_ST_ACCEL_I2C_3AXIS if (I2C)
 	select IIO_ST_ACCEL_SPI_3AXIS if (SPI_MASTER)