summaryrefslogtreecommitdiffstats
path: root/drivers/iio/adc/at91-sama5d2_adc.c
diff options
context:
space:
mode:
authorAkinobu Mita <akinobu.mita@gmail.com>2016-01-07 16:40:30 +0100
committerJonathan Cameron <jic23@kernel.org>2016-01-16 14:04:05 +0100
commit4ea71e5cee8ad52407ee95c3548d0887eedae301 (patch)
tree4e5bb7df6d56631f15c27b53a992bfac6236b897 /drivers/iio/adc/at91-sama5d2_adc.c
parentMAINTAINERS: add entry for Atmel SAMA5D2 ADC driver (diff)
downloadlinux-4ea71e5cee8ad52407ee95c3548d0887eedae301.tar.xz
linux-4ea71e5cee8ad52407ee95c3548d0887eedae301.zip
iio: adc: mcp320x: support more differential voltage measurement
mcp320x driver supports the pseudo-differential mode by in_voltage'IN+'-voltage'IN-'_raw where (IN+, IN-) = (0, 1), (2, 3), ... mcp320x chips except MCP3X01 can also select swapped IN+ and IN- pairs in the pseudo-differential mode. i.e. in_voltage'IN+'-voltage'IN-'_raw where (IN+, IN-) = (1, 0), (3, 2), ... If the voltage level of IN+ is equal to or less than IN-, the resultant code will be 000h. So it is useful to provide these, too. Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Cc: Oskar Andero <oskar.andero@gmail.com> Cc: Jonathan Cameron <jic23@kernel.org> Cc: Hartmut Knaack <knaack.h@gmx.de> Cc: Lars-Peter Clausen <lars@metafoo.de> Cc: Peter Meerwald <pmeerw@pmeerw.net> Cc: linux-iio@vger.kernel.org Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/adc/at91-sama5d2_adc.c')
0 files changed, 0 insertions, 0 deletions