aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/hid-sensor-ids.h
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2017-03-18 19:38:19 +0100
committerJonathan Cameron <jic23@kernel.org>2017-03-25 14:55:03 +0000
commit48ba7c3c0b37363d9ddca3354ca503ad721e14dc (patch)
tree29bdd0293434233619059e2f544ba15a82cd7e44 /include/linux/hid-sensor-ids.h
parentstaging: adis16203: Remove locking on raw reads of IIO_CHAN_INFO_CALIBBIAS (diff)
downloadwireguard-linux-48ba7c3c0b37363d9ddca3354ca503ad721e14dc.tar.xz
wireguard-linux-48ba7c3c0b37363d9ddca3354ca503ad721e14dc.zip
iio: adc: meson-saradc: add calibration
This patch adds calibration for the Meson SAR ADC. Points 25% vref and 75% vref are used for calibration. It uses a simple linear calibration function: SCALE * val + BIAS Successfully tested on a Odroid C2. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Tested-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'include/linux/hid-sensor-ids.h')
0 files changed, 0 insertions, 0 deletions