linux/drivers/iio/accel
Octavian Purdila 3e825ec98d 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>
2015-03-14 18:56:04 +00:00
..
bma180.c staging: iio: fix up merge error 2014-09-22 07:54:10 -07:00
bmc150-accel.c iio: bmc150: introduce bmc150_accel_interrupt 2015-03-14 18:56:04 +00:00
hid-sensor-accel-3d.c iio: hid-sensor-accel-3d: Introduce PM 2015-01-25 22:55:42 +00:00
Kconfig iio: add driver for Freescale MMA9553 2015-01-30 20:34:59 +00:00
kxcjk-1013.c iio: improve usage of gpiod API 2015-02-22 09:49:22 +00:00
kxsd9.c iio:accel:kxsd9 fix missing mutex unlock 2013-11-17 15:22:00 +00:00
Makefile iio: add driver for Freescale MMA9553 2015-01-30 20:34:59 +00:00
mma8452.c iio: accel: mma8452: Remove trailing whitespace 2015-01-01 12:12:09 +00:00
mma9551_core.c iio: add driver for Freescale MMA9553 2015-01-30 20:34:59 +00:00
mma9551_core.h iio: add driver for Freescale MMA9553 2015-01-30 20:34:59 +00:00
mma9551.c iio: accel: mma9551: Check gpiod_to_irq return value 2015-03-09 13:27:49 +00:00
mma9553.c iio: improve usage of gpiod API 2015-02-22 09:49:22 +00:00
ssp_accel_sensor.c iio: common: ssp_sensors: Add sensorhub accelerometer sensor 2015-01-29 18:49:56 +00:00
st_accel_buffer.c iio:st_accel: Drop redundant call to iio_sw_buffer_preenable() 2013-10-16 19:11:11 +01:00
st_accel_core.c iio:accel: Removed unnecessary parameter on common_probe function 2014-10-04 11:24:33 +01:00
st_accel_i2c.c iio:common: Set the device pointer into ST common sensors library 2014-10-04 11:26:21 +01:00
st_accel_spi.c iio:common: Set the device pointer into ST common sensors library 2014-10-04 11:26:21 +01:00
st_accel.h iio:accel: Removed unnecessary parameter on common_probe function 2014-10-04 11:24:33 +01:00