From: Lars-Peter Clausen Date: Fri, 14 Jun 2013 15:58:00 +0000 (+0100) Subject: staging:iio:ad7291: Simplify threshold register lookup X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~76^2~165^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f8db0d46be2e57110771cbebc42141934e4cf5a;p=pandora-kernel.git staging:iio:ad7291: Simplify threshold register lookup The AD7291 register map is nicely uniform and we can easily compute the threshold register address for a certain channel using simple math instead of using a look-up table. Signed-off-by: Lars-Peter Clausen Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed