aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio/light/hid-sensor-prox.c
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2017-02-15 20:31:55 +0100
committerJonathan Cameron <jic23@kernel.org>2017-02-19 12:53:27 +0000
commit6a882a2cbeb09b7c32610a644d5915d17b80b617 (patch)
tree8d0e7036d3a9b3045b6813638bef100ca47b9ddd /drivers/iio/light/hid-sensor-prox.c
parentiio: adc: meson-saradc: switch from polling to interrupt mode (diff)
downloadlinux-6a882a2cbeb09b7c32610a644d5915d17b80b617.tar.gz
linux-6a882a2cbeb09b7c32610a644d5915d17b80b617.zip
iio: adc: meson-saradc: improve meson_sar_adc_read_raw_sample
After sampling there should always be only one value in the FIFO. This also applies to averaging mode as the averaging is done chip-internally. So we don't have to loop and let the driver complain if there's not exactly one value in the FIFO. If the value belongs to a different channel then don't silently swallow the value but complain. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Acked-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/light/hid-sensor-prox.c')
0 files changed, 0 insertions, 0 deletions