linux-stable/drivers/iio/magnetometer
Linus Walleij a9fd053b56 iio: st_sensors: support active-low interrupts
Most ST MEMS Sensors that support interrupts can also handle sending
an active low interrupt, i.e. going from high to low on data ready
(or other interrupt) and thus triggering on a falling edge to the
interrupt controller.

Set up logic to inspect the interrupt line we get for a sensor: if
it is triggering on rising edge, leave everything alone, but if it
triggers on falling edges, set up active low, and if unsupported
configurations appear: warn with errors and reconfigure the interrupt
to a rising edge, which all interrupt generating sensors support.

Create a local header for st_sensors_core.h to share functions
between the sensor core and the trigger setup code.

Cc: Giuseppe Barba <giuseppe.barba@st.com>
Cc: Denis Ciocca <denis.ciocca@st.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2016-01-10 12:35:32 +00:00
..
ak8975.c
bmc150_magn.c iio: Reconcile operation order between iio_register/unregister and pm functions 2015-11-08 15:36:53 +00:00
hid-sensor-magn-3d.c iio: hid-sensor-magn-3d: Constify platform_device_id 2015-05-10 20:31:47 +01:00
Kconfig iio:magnetometer:bmc150_magn: sort entry alphabetically 2015-08-12 22:18:21 +01:00
mag3110.c iio: magnetometer: mag3110: Place driver on standby on error 2015-04-01 17:24:09 +02:00
Makefile iio:magnetometer:bmc150_magn: sort entry alphabetically 2015-08-12 22:18:21 +01:00
mmc35240.c Second set of new device support, features and cleanup for the 4.3 cycle. 2015-08-12 12:43:41 -07:00
st_magn.h iio: st-magn: add support for lsm303agr magnetometer 2015-07-23 20:43:27 +01:00
st_magn_buffer.c iio: st_magn: Add irq trigger handling 2015-07-23 20:43:13 +01:00
st_magn_core.c iio: st_sensors: support active-low interrupts 2016-01-10 12:35:32 +00:00
st_magn_i2c.c iio: st-magn: add support for lsm303agr magnetometer 2015-07-23 20:43:27 +01:00
st_magn_spi.c spi: Drop owner assignment from spi_drivers 2015-10-28 10:30:17 +09:00