Skip to contentSkip to conversation

iio hid-sensor-trigger: add Kconfig depends on IIO_BUFFER

PATCH Applied Alexander Wuerstlein 2 participants 2 messages Jun 12, 2017 – Jun 13, 2017 IIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iio hid-sensor-trigger: add Kconfig depends on IIO_BUFFER

Building a kernel with my configuration failed with:

Quoted 1 line

drivers/built-in.o: In function hid_sensor_setup_batch_mode': staging/drivers/iio/common/hid-sensors/hid-sensor-trigger.c:104: undefined reference to iio_buffer_set_attrs'

which is fixed by this patch.

---
 drivers/iio/common/hid-sensors/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/common/hid-sensors/Kconfig +1 -1
index 39188b72cd3b..80105378b0ba 100644
@@ -16,7 +16,7 @@ config HID_SENSOR_IIO_COMMON
 
 config HID_SENSOR_IIO_TRIGGER
 	tristate "Common module (trigger) for all HID Sensor IIO drivers"
-	depends on HID_SENSOR_HUB && HID_SENSOR_IIO_COMMON
+	depends on HID_SENSOR_HUB && HID_SENSOR_IIO_COMMON && IIO_BUFFER
 	select IIO_TRIGGER
 	help
 	  Say yes here to build trigger support for HID sensors.
Signature · 1 line
2.11.0
maintainer Applied
#1 lore raw
Quoted 5 lines · On Mon, 12 Jun 2017 13:56:05 +0200 Alexander Wuerstlein <[email protected]> wrote:

Building a kernel with my configuration failed with:

Quoted 1 line

drivers/built-in.o: In function hid_sensor_setup_batch_mode': staging/drivers/iio/common/hid-sensors/hid-sensor-trigger.c:104: undefined reference to iio_buffer_set_attrs'

which is fixed by this patch.

Added a fixes tag as the issue was only introduced very recently.

Applied to the togreg branch of iio.git.

Thanks,

Jonathan

Quoted 17 lines
---
 drivers/iio/common/hid-sensors/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/common/hid-sensors/Kconfig +1 -1
index 39188b72cd3b..80105378b0ba 100644
@@ -16,7 +16,7 @@ config HID_SENSOR_IIO_COMMON
 
 config HID_SENSOR_IIO_TRIGGER
 	tristate "Common module (trigger) for all HID Sensor IIO drivers"
-	depends on HID_SENSOR_HUB && HID_SENSOR_IIO_COMMON
+	depends on HID_SENSOR_HUB && HID_SENSOR_IIO_COMMON && IIO_BUFFER
 	select IIO_TRIGGER
 	help
 	  Say yes here to build trigger support for HID sensors.