diff options
Diffstat (limited to 'kernel/drivers/iio/magnetometer/st_magn_buffer.c')
-rw-r--r-- | kernel/drivers/iio/magnetometer/st_magn_buffer.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/kernel/drivers/iio/magnetometer/st_magn_buffer.c b/kernel/drivers/iio/magnetometer/st_magn_buffer.c index bf427dc0d..ecd3bd0a9 100644 --- a/kernel/drivers/iio/magnetometer/st_magn_buffer.c +++ b/kernel/drivers/iio/magnetometer/st_magn_buffer.c @@ -23,6 +23,13 @@ #include <linux/iio/common/st_sensors.h> #include "st_magn.h" +int st_magn_trig_set_state(struct iio_trigger *trig, bool state) +{ + struct iio_dev *indio_dev = iio_trigger_get_drvdata(trig); + + return st_sensors_set_dataready_irq(indio_dev, state); +} + static int st_magn_buffer_preenable(struct iio_dev *indio_dev) { return st_sensors_set_enable(indio_dev, true); |