]> git.baikalelectronics.ru Git - kernel.git/commit
iio: sx9500: fix bug in compensation code
authorVlad Dogaru <vlad.dogaru@intel.com>
Tue, 30 Jun 2015 11:20:59 +0000 (14:20 +0300)
committerJonathan Cameron <jic23@kernel.org>
Sun, 5 Jul 2015 13:03:32 +0000 (14:03 +0100)
commit4c28811922cc2c66b34836463f82046f03c10b4c
tree97fd4d323ab235d02aa316abf6f452d3a3ebc237
parent0bf1f0ed4b484f5c2f94dc01e503ec1c0b6e94cb
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>
drivers/iio/proximity/sx9500.c