linux/drivers/iio
Linus Walleij ed8959f40a iio: accel: fix Kconfig warning
commit 762227721f
"iio: accel: st_accel: handle deprecated bindings"
attempted to be smart and let users use the old I2C
driver and the new SPI driver, or the old SPI driver and
the new I2C driver in combination for the LIS3LV02,
and put the restrictions on the I2C and SPI subdrivers
not not be combined with the old subdrivers.

This doesn't work since the IIO ST accel top-level
component selects the I2C and SPI subdrivers, resulting
in the following Kconfig noise:

warning: (IIO_ST_ACCEL_3AXIS) selects IIO_ST_ACCEL_I2C_3AXIS
which has unmet direct dependencies (IIO && !SENSORS_LIS3_I2C
&& IIO_ST_ACCEL_3AXIS && IIO_ST_SENSORS_I2C)
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)
(...)

This fixes the issue by putting the dependencies directly
in the top-level component instead, so that it never gets
to select its unselectable subcomponent.

Fixes: 762227721f ("iio: accel: st_accel: handle deprecated bindings")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-01-23 09:27:30 +01:00
..
accel iio: accel: fix Kconfig warning 2017-01-23 09:27:30 +01:00
adc Second round of IIO new device support, cleanups and features for the 4.11 cycle 2017-01-23 09:23:23 +01:00
amplifiers spi: Updates for v4.4 2015-11-05 13:15:12 -08:00
buffer iio:buffer.h - split into buffer.h and buffer_impl.h 2017-01-10 19:54:55 +00:00
chemical iio:chemical:atlas-ph-sensor: Fix use of 32 bit int to hold 16 bit big endian value 2016-10-23 22:18:27 +01:00
common First round of new device support, features and cleanups for IIO in the 4.11 cycle. 2017-01-19 10:40:44 +01:00
counter iio: 104-quad-8: Fix active level mismatch for the preset enable option 2016-12-03 10:08:09 +00:00
dac iio: dac: ad5593r: Add ACPI support 2016-12-30 17:20:14 +00:00
dummy iio:dummy: Stop enabling timestamp by default. 2017-01-10 19:54:55 +00:00
frequency iio: frequency: ad9523: use unsigned int rather then bare unsigned 2016-04-17 10:31:03 +01:00
gyro iio:kfifo_buf header include push down. 2017-01-10 19:54:53 +00:00
health iio: health: max30100: use msleep() for long uncritical delays 2017-01-22 13:21:28 +00:00
humidity iio: humidity: Support acpi probe for hts211 2016-12-03 08:56:28 +00:00
imu Second round of IIO new device support, cleanups and features for the 4.11 cycle 2017-01-23 09:23:23 +01:00
light Second round of IIO new device support, cleanups and features for the 4.11 cycle 2017-01-23 09:23:23 +01:00
magnetometer iio: magnetometer: mag3110: claim direct mode during raw writes 2017-01-21 12:20:40 +00:00
orientation iio: orientation: hid-sensor-rotation: Add PM function (fix non working driver) 2016-11-05 17:47:47 +00:00
potentiometer iio: potentiometer: mcp4531: Export OF device ID table as module aliases 2017-01-22 13:21:29 +00:00
potentiostat iio: potentiostat: add LMP91000 support 2016-09-27 20:33:03 +01:00
pressure iio: pressure: ms5611: claim direct mode during oversampling changes 2017-01-21 12:31:05 +00:00
proximity iio: proximity: sx9500: claim direct mode during raw proximity reads 2017-01-21 12:21:53 +00:00
temperature iio:temperature: Add support for TI TMP007 sensor 2017-01-14 10:45:05 +00:00
trigger Second round of IIO new device support, cleanups and features for the 4.11 cycle 2017-01-23 09:23:23 +01:00
iio_core_trigger.h
iio_core.h iio:core: timestamping clock selection support 2016-06-30 19:41:38 +01:00
industrialio-buffer.c iio:buffer.h - split into buffer.h and buffer_impl.h 2017-01-10 19:54:55 +00:00
industrialio-configfs.c iio:configfs: Introduce iio/configfs.h to provide a location for the configfs_subsystem 2015-12-05 16:25:30 +00:00
industrialio-core.c iio:buffer.h - split into buffer.h and buffer_impl.h 2017-01-10 19:54:55 +00:00
industrialio-event.c iio: iio_push_event(): Don't crash if the event interface is not registered 2016-09-10 16:40:44 +01:00
industrialio-sw-device.c iio: Add support for creating IIO devices via configfs 2016-05-04 11:43:54 +01:00
industrialio-sw-trigger.c iio: core: fix ptr_ret.cocci warnings 2016-01-20 17:09:18 -08:00
industrialio-trigger.c iio: trigger: clean up viio_trigger_alloc() 2017-01-22 13:37:34 +00:00
industrialio-triggered-event.c iio: Support triggered events 2015-08-27 20:47:09 +01:00
inkern.c iio: inkern: pass through raw values if no scaling 2017-01-14 12:20:18 +00:00
Kconfig iio: 104-quad-8: Add IIO support for the ACCES 104-QUAD-8 2016-10-01 17:06:21 +01:00
Makefile iio: 104-quad-8: Add IIO support for the ACCES 104-QUAD-8 2016-10-01 17:06:21 +01:00