From: Vlad Dogaru Date: Tue, 30 Jun 2015 11:20:59 +0000 (+0300) Subject: iio: sx9500: fix bug in compensation code X-Git-Tag: omap-for-v4.3/fixes-merge-window~229^2~2^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68958bd5ca748beba1251937d6f6561e70e97c14;p=pandora-kernel.git 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 Signed-off-by: Vlad Dogaru Acked-by: Hartmut Knaack Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed