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)
commit3f8db0d46be2e57110771cbebc42141934e4cf5a
treedf0369a23184b4da6eb9a5fff9a159e77370218a
parent08d7a70c01c68e8d457d232eea426fe21bd36670
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