commit | 0d1462de0b24fd09284411a3753f24a3d7c67577 | [log] [tgz] |
---|---|---|
author | Vlad Dogaru <vlad.dogaru@intel.com> | Tue Jun 30 14:20:59 2015 +0300 |
committer | Jonathan Cameron <jic23@kernel.org> | Sun Jul 19 11:48:15 2015 +0100 |
tree | 000a2ff347c33cb7cb498ba602af5d4fa1d245e2 | |
parent | 498adaeb898c4eff190d598799bd9b0d607ce051 [diff] |
iio: sx9500: fix bug in compensation code The initial compensation was mistakingly toggling an extra bit in the control register. Fix this and make sure it's less likely to happen by introducing an additional macro. Reported-by: Hartmut Knaack <knaack.h@gmx.de> Signed-off-by: Vlad Dogaru <vlad.dogaru@intel.com> Acked-by: Hartmut Knaack <knaack.h@gmx.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>