diff options
author | Irina Tirdea | 2015-01-11 20:10:12 +0100 |
---|---|---|
committer | Jonathan Cameron | 2015-01-27 19:49:55 +0100 |
commit | 17a2cbc27981b85a09a48425c2614ae0cb7be8cd (patch) | |
tree | bae8c699bf39612dd6525c9096f8e0ac55aa0cc5 /drivers/staging/iio/iio_simple_dummy.c | |
parent | iio: core: Introduce CHANGE event type (diff) | |
download | kernel-qcow2-linux-17a2cbc27981b85a09a48425c2614ae0cb7be8cd.tar.gz kernel-qcow2-linux-17a2cbc27981b85a09a48425c2614ae0cb7be8cd.tar.xz kernel-qcow2-linux-17a2cbc27981b85a09a48425c2614ae0cb7be8cd.zip |
iio: core: Remove IIO_EV_TYPE_INSTANCE
By introducing IIO_EV_TYPE_CHANGE, IIO_EV_TYPE_INSTANCE becomes redundant.
The effect of IIO_EV_TYPE_INSTANCE can be obtained by using IIO_EV_TYPE_CHANGE
with IIO_EV_INFO_VALUE set to 1.
Remove all instances of IIO_EV_TYPE_INSTANCE and replace them with
IIO_EV_TYPE_CHANGE where needed.
Signed-off-by: Irina Tirdea <irina.tirdea@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/staging/iio/iio_simple_dummy.c')
-rw-r--r-- | drivers/staging/iio/iio_simple_dummy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/iio/iio_simple_dummy.c b/drivers/staging/iio/iio_simple_dummy.c index 0b8611ac1003..e4520213f627 100644 --- a/drivers/staging/iio/iio_simple_dummy.c +++ b/drivers/staging/iio/iio_simple_dummy.c @@ -73,7 +73,7 @@ static const struct iio_event_spec iio_dummy_event = { * simple step detect event - triggered when a step is detected */ static const struct iio_event_spec step_detect_event = { - .type = IIO_EV_TYPE_INSTANCE, + .type = IIO_EV_TYPE_CHANGE, .dir = IIO_EV_DIR_NONE, .mask_separate = BIT(IIO_EV_INFO_ENABLE), }; |