]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
staging: iio: ad7606: fix improper setting of oversampling pins
authorEva Rachel Retuya <eraretuya@gmail.com>
Sat, 8 Oct 2016 16:05:39 +0000 (00:05 +0800)
committerLuis Henriques <luis.henriques@canonical.com>
Fri, 20 Jan 2017 11:26:46 +0000 (11:26 +0000)
commite103bc31173bd187b944d198f6cff3f7ad028a28
treedb15fe912bdbe0fb407b66a337aaa5a6a186f66d
parentdf1087dcb8125b86c8fbaf0abcaf19ab7ecd3f5b
staging: iio: ad7606: fix improper setting of oversampling pins

BugLink: http://bugs.launchpad.net/bugs/1655969
commit b321a38d2407c7e425c54bc09be909a34e49f740 upstream.

The oversampling ratio is controlled using the oversampling pins,
OS [2:0] with OS2 being the MSB control bit, and OS0 the LSB control
bit.

The gpio connected to the OS2 pin is not being set correctly, only OS0
and OS1 pins are being set. Fix the typo to allow proper control of the
oversampling pins.

Signed-off-by: Eva Rachel Retuya <eraretuya@gmail.com>
Fixes: b9618c0 ("staging: IIO: ADC: New driver for AD7606/AD7606-6/AD7606-4")
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
drivers/staging/iio/adc/ad7606_core.c