diff options
| author | Heiner Kallweit <hkallweit1@gmail.com> | 2017-02-15 22:31:55 +0300 |
|---|---|---|
| committer | Jonathan Cameron <jic23@kernel.org> | 2017-02-19 15:53:27 +0300 |
| commit | 6a882a2cbeb09b7c32610a644d5915d17b80b617 (patch) | |
| tree | 8d0e7036d3a9b3045b6813638bef100ca47b9ddd /include/linux/netdev_features.h | |
| parent | 3af109131b7eb880ba0711344912d7a523a812b4 (diff) | |
| download | linux-6a882a2cbeb09b7c32610a644d5915d17b80b617.tar.xz | |
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 'include/linux/netdev_features.h')
0 files changed, 0 insertions, 0 deletions
