commit | 69582b888408cb218a6b346c345db7a66046497b | [log] [tgz] |
---|---|---|
author | Lars-Peter Clausen <lars@metafoo.de> | Mon Oct 07 15:11:00 2013 +0100 |
committer | Jonathan Cameron <jic23@kernel.org> | Sat Oct 12 12:52:33 2013 +0100 |
tree | bb603833f55662300b367355c57120816d100853 | |
parent | ec6670ae53c13d767bdb7b3e37755ad661395380 [diff] |
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>