diff options
author | Octavian Purdila <octavian.purdila@intel.com> | 2015-03-03 18:17:57 +0200 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2015-03-14 18:56:04 +0000 |
commit | 3e825ec98d36c8c8073024c95853389a831902e5 (patch) | |
tree | 06c2d503f11a0eea8fd2ae7f90dc98dcf44f653d /drivers/mfd/as3722.c | |
parent | 1fad034c636cb57686f778d1c80513acbdaf8ec5 (diff) | |
download | op-kernel-dev-3e825ec98d36c8c8073024c95853389a831902e5.zip op-kernel-dev-3e825ec98d36c8c8073024c95853389a831902e5.tar.gz |
iio: bmc150: introduce bmc150_accel_interrupt
Since both triggers and events can share an interrupt, add a data
structure that tracks the users of an interrupt so that it enables or
disables it only for the first users and respectively last user.
This will allows us to easily add more events or triggers.
The patch also adds an interrupt enabled counter, so that we can
easily know if we need to put the device in normal mode when the
resume callback is issued.
Signed-off-by: Octavian Purdila <octavian.purdila@intel.com>
Reviewed-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/mfd/as3722.c')
0 files changed, 0 insertions, 0 deletions