linux-stable/include/linux/iio
Lorenzo Bianconi e72a060151 iio: st_sensors: add register mask for status register
Introduce register mask for data-ready status register since
pressure sensors (e.g. LPS22HB) export just two channels
(BIT(0) and BIT(1)) and BIT(2) is marked reserved while in
st_sensors_new_samples_available() value read from status register
is masked using 0x7.
Moreover do not mask status register using active_scan_mask since
now status value is properly masked and if the result is not zero the
interrupt has to be consumed by the driver. This fix an issue on LPS25H
and LPS331AP where channel definition is swapped respect to status
register.
Furthermore that change allows to properly support new devices
(e.g LIS2DW12) that report just ZYXDA (data-ready) field in status register
to figure out if the interrupt has been generated by the device.

Fixes: 97865fe413 (iio: st_sensors: verify interrupt event to status)
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@st.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2017-10-09 21:01:45 +01:00
..
accel
adc iio: ad_sigma_delta: Implement a dedicated reset function 2017-09-24 16:58:21 +01:00
common iio: st_sensors: add register mask for status register 2017-10-09 21:01:45 +01:00
dac
frequency
gyro
imu
magnetometer
timer - New Drivers 2017-09-07 13:51:13 -07:00
buffer-dma.h
buffer-dmaengine.h
buffer.h
buffer_impl.h
configfs.h
consumer.h iio: inkern: api for manipulating ext_info of iio channels 2017-06-03 19:29:26 +09:00
driver.h
events.h
iio.h Round one of new device support, features and cleanup for IIO in the 4.15 cycle. 2017-09-25 12:56:37 +02:00
kfifo_buf.h
machine.h
sw_device.h iio: sw-device: Fix config group initialization 2017-03-13 20:42:34 +00:00
sw_trigger.h
sysfs.h
trigger.h Round one of new device support, features and cleanup for IIO in the 4.15 cycle. 2017-09-25 12:56:37 +02:00
trigger_consumer.h
triggered_buffer.h
triggered_event.h
types.h