]> git.baikalelectronics.ru Git - kernel.git/commit
staging:iio:ad7291: Simplify threshold register lookup
authorLars-Peter Clausen <lars@metafoo.de>
Fri, 14 Jun 2013 15:58:00 +0000 (16:58 +0100)
committerJonathan Cameron <jic23@kernel.org>
Fri, 14 Jun 2013 20:52:54 +0000 (21:52 +0100)
commitb978b4643fb3d858cb366019159ec7487573f033
treedf0369a23184b4da6eb9a5fff9a159e77370218a
parenta98ab62147c79e90061ad6574cb21bb0c24a1c9e
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 <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/adc/ad7291.c