OSDN Git Service

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)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 10 Jun 2018 10:52:28 +0000 (11:52 +0100)
commit2873c3f0e2bd12a7612e905c920c058855f4072a
treed99c9396aa00658acaa5c48e7d20bd2717d3fd48
parent3ca24ce9ff764bc27bceb9b2fd8ece74846c3fd3
iio: 104-quad-8: Fix off-by-one error in register selection

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>
drivers/iio/counter/104-quad-8.c