mirror of
https://github.com/torvalds/linux.git
synced 2024-11-02 02:01:29 +00:00
a9fd053b56
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> |
||
---|---|---|
.. | ||
adis16080.c | ||
adis16130.c | ||
adis16136.c | ||
adis16260.c | ||
adxrs450.c | ||
bmg160_core.c | ||
bmg160_i2c.c | ||
bmg160_spi.c | ||
bmg160.h | ||
hid-sensor-gyro-3d.c | ||
itg3200_buffer.c | ||
itg3200_core.c | ||
Kconfig | ||
Makefile | ||
ssp_gyro_sensor.c | ||
st_gyro_buffer.c | ||
st_gyro_core.c | ||
st_gyro_i2c.c | ||
st_gyro_spi.c | ||
st_gyro.h |