diff options
author | Irina Tirdea <irina.tirdea@intel.com> | 2015-04-13 11:40:51 -0400 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2015-04-26 14:41:59 -0400 |
commit | ae2ec9597c9329fdf503af264966bc7e421daa58 (patch) | |
tree | edf1014d3d564cc45af7e694d1700472f9bc5074 | |
parent | 2a4d20322d1c619ae2f07378d5b360e85f562c98 (diff) |
iio: accel: mma9553: add enable channel for activity
Add an enable channel for activity, so it can also
be polled independently of events or other channels.
Signed-off-by: Irina Tirdea <irina.tirdea@intel.com>
Reported-by: Daniel Baluta <daniel.baluta@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
-rw-r--r-- | drivers/iio/accel/mma9553.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/iio/accel/mma9553.c b/drivers/iio/accel/mma9553.c index 607dbfcb49ab..1a256055a6f7 100644 --- a/drivers/iio/accel/mma9553.c +++ b/drivers/iio/accel/mma9553.c | |||
@@ -968,7 +968,8 @@ static const struct iio_chan_spec_ext_info mma9553_ext_info[] = { | |||
968 | .modified = 1, \ | 968 | .modified = 1, \ |
969 | .channel2 = _chan2, \ | 969 | .channel2 = _chan2, \ |
970 | .info_mask_separate = BIT(IIO_CHAN_INFO_PROCESSED), \ | 970 | .info_mask_separate = BIT(IIO_CHAN_INFO_PROCESSED), \ |
971 | .info_mask_shared_by_type = BIT(IIO_CHAN_INFO_CALIBHEIGHT), \ | 971 | .info_mask_shared_by_type = BIT(IIO_CHAN_INFO_CALIBHEIGHT) | \ |
972 | BIT(IIO_CHAN_INFO_ENABLE), \ | ||
972 | .event_spec = mma9553_activity_events, \ | 973 | .event_spec = mma9553_activity_events, \ |
973 | .num_event_specs = ARRAY_SIZE(mma9553_activity_events), \ | 974 | .num_event_specs = ARRAY_SIZE(mma9553_activity_events), \ |
974 | .ext_info = mma9553_ext_info, \ | 975 | .ext_info = mma9553_ext_info, \ |