iio: 104-quad-8: Fix off-by-one error in register selection
authorWilliam Breathitt Gray <vilhelm.gray@gmail.com>
Thu, 24 May 2018 20:37:46 +0000 (16:37 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Oct 2018 00:00:53 +0000 (17:00 -0700)
commit99795ed0c62d9aa81c6930838e4a8ab6132bc7b4
tree2791861344c7b5e4590febb502e0da7834f74a2f
parenta82a772da750843c30efdd3434cd5a0937193cf6
iio: 104-quad-8: Fix off-by-one error in register selection

[ Upstream commit 2873c3f0e2bd12a7612e905c920c058855f4072a ]

The reset flags operation is selected by bit 2 in the "Reset and Load
Signals Decoders" register, not bit 1.

Fixes: 28e5d3bb0325 ("iio: 104-quad-8: Add IIO support for the ACCES 104-QUAD-8")
Signed-off-by: William Breathitt Gray <vilhelm.gray@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/counter/104-quad-8.c