staging:iio:ad799x: Simplify threshold register look-up
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 7 Oct 2013 14:11:00 +0000 (15:11 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 12 Oct 2013 11:52:33 +0000 (12:52 +0100)
commit69582b888408cb218a6b346c345db7a66046497b
treebb603833f55662300b367355c57120816d100853
parentec6670ae53c13d767bdb7b3e37755ad661395380
staging:iio:ad799x: Simplify threshold register look-up

Given a channel number the corresponding threshold and hysteresis registers can
easily be calculated. No need to use 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/ad799x.h
drivers/staging/iio/adc/ad799x_core.c