OpenCloudOS-Kernel/drivers/iio/magnetometer
Linus Walleij 97865fe413 iio: st_sensors: verify interrupt event to status
This makes all ST sensor drivers check that they actually have
new data available for the requested channel(s) before claiming
an IRQ, by reading the status register (which is conveniently
the same for all ST sensors) and check that the channel has new
data before proceeding to read it and fill the buffer.

This way sensors can share an interrupt line: it can be flaged
as shared and then the sensor that did not fire will return
NO_IRQ, and the sensor that fired will handle the IRQ and
return IRQ_HANDLED.

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-04-19 19:58:12 +01:00
..
Kconfig iio: magn: bmc150: Introduce SPI support 2016-04-18 20:44:47 +01:00
Makefile iio: magn: bmc150: Introduce SPI support 2016-04-18 20:44:47 +01:00
ak8975.c iio: magnetometer: ak8975: put else and brace at the same line 2016-04-16 13:39:27 +01:00
bmc150_magn.c iio: magn: Split bmc150 driver in common/i2c parts 2016-04-18 20:44:40 +01:00
bmc150_magn.h iio: magn: Split bmc150 driver in common/i2c parts 2016-04-18 20:44:40 +01:00
bmc150_magn_i2c.c iio: magn: Split bmc150 driver in common/i2c parts 2016-04-18 20:44:40 +01:00
bmc150_magn_spi.c iio: magn: bmc150: Introduce SPI support 2016-04-18 20:44:47 +01:00
hid-sensor-magn-3d.c iio: hid-sensor-magn-3d: Constify platform_device_id 2015-05-10 20:31:47 +01:00
hmc5843.h iio: hmc5843: Move hmc5843 out of staging 2016-02-24 20:40:39 +00:00
hmc5843_core.c iio: hmc5843: Move hmc5843 out of staging 2016-02-24 20:40:39 +00:00
hmc5843_i2c.c iio: hmc5843: Move hmc5843 out of staging 2016-02-24 20:40:39 +00:00
hmc5843_spi.c iio: hmc5843: Move hmc5843 out of staging 2016-02-24 20:40:39 +00:00
mag3110.c iio: magnetometer: mag3110: Place driver on standby on error 2015-04-01 17:24:09 +02: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: verify interrupt event to status 2016-04-19 19:58:12 +01: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