linux/drivers/iio
Arnd Bergmann 9b090a98e9 iio: st_magn: always define ST_MAGN_TRIGGER_SET_STATE
When CONFIG_IIO_TRIGGER is enabled but CONFIG_IIO_BUFFER is
not, we get a build error in the st_magn driver:

drivers/iio/magnetometer/st_magn_core.c:573:23: error: 'ST_MAGN_TRIGGER_SET_STATE' undeclared here (not in a function)
  .set_trigger_state = ST_MAGN_TRIGGER_SET_STATE,
                       ^~~~~~~~~~~~~~~~~~~~~~~~~

Apparently, this ST_MAGN_TRIGGER_SET_STATE macro was meant to
be set to NULL when the definition is not available because
st_magn_buffer.c is not compiled, but the alternative definition
was not included in the original patch. This adds it.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 74f5683f35 ("iio: st_magn: Add irq trigger handling")
Acked-by: Denis Ciocca <denis.ciocca@st.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2016-04-03 10:56:42 +01:00
..
accel Merge 4.5-rc3 into staging-next 2016-02-07 17:34:04 -08:00
adc iio: adc: Fix build error of missing devm_ioremap_resource on UM 2016-03-28 09:51:19 +01:00
amplifiers spi: Updates for v4.4 2015-11-05 13:15:12 -08:00
buffer iio: buffer-dmaengine: Use dmaengine_terminate_sync() 2016-02-09 21:05:17 +00:00
chemical iio: convert to common i2c_check_functionality() return value 2016-02-27 17:17:43 +00:00
common iio: st_sensors: support active-low interrupts 2016-01-10 12:35:32 +00:00
dac iio: dac: vf610_dac: Add IIO DAC driver for Vybrid SoC 2016-02-24 20:52:55 +00:00
dummy Second set of IIO new drivers, functionality and cleanups for the 4.5 cycle. 2015-12-26 17:03:33 -08:00
frequency spi: Updates for v4.4 2015-11-05 13:15:12 -08:00
gyro iio: st_sensors: support active-low interrupts 2016-01-10 12:35:32 +00:00
health iio: health: max30100: correct FIFO check condition 2016-03-28 10:09:58 +01:00
humidity iio: convert to common i2c_check_functionality() return value 2016-02-27 17:17:43 +00:00
imu iio: imu: Fix inv_mpu6050 dependencies 2016-03-28 09:52:09 +01:00
light iio: convert to common i2c_check_functionality() return value 2016-02-27 17:17:43 +00:00
magnetometer iio: st_magn: always define ST_MAGN_TRIGGER_SET_STATE 2016-04-03 10:56:42 +01:00
orientation iio: orientation: hid-sensor-rotation: Fix memory leak in probe() 2015-05-17 09:10:25 +01:00
potentiometer iio: convert to common i2c_check_functionality() return value 2016-02-27 17:17:43 +00:00
pressure iio: convert to common i2c_check_functionality() return value 2016-02-27 17:17:43 +00:00
proximity iio: convert to common i2c_check_functionality() return value 2016-02-27 17:17:43 +00:00
temperature iio: convert to common i2c_check_functionality() return value 2016-02-27 17:17:43 +00:00
trigger iio: trigger: Introduce IIO hrtimer based trigger 2015-12-03 18:19:27 +00:00
iio_core_trigger.h
iio_core.h iio: Move buffer registration to the core 2014-12-12 12:28:31 +00:00
industrialio-buffer.c iio: fix config watermark initial value 2016-03-28 11:00:38 +01: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 First round of new IIO device support, features and cleanups for the 4.6 cycle. 2016-02-01 13:10:03 -08:00
industrialio-event.c iio: event: Remove negative error code from iio_event_poll 2015-08-12 19:26:39 +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: Support triggered events 2015-08-27 20:47:09 +01:00
industrialio-triggered-event.c iio: Support triggered events 2015-08-27 20:47:09 +01:00
inkern.c First set of IIO fixes for the 4.5 cycle. 2016-02-01 13:07:38 -08:00
Kconfig iio: light: add MAX30100 oximeter driver support 2015-12-12 12:14:37 +00:00
Makefile iio: light: add MAX30100 oximeter driver support 2015-12-12 12:14:37 +00:00