iio:ad7791: Report scale as fractional value
authorLars-Peter Clausen <lars@metafoo.de>
Sat, 28 Sep 2013 09:31:00 +0000 (10:31 +0100)
committerJonathan Cameron <jic23@kernel.org>
Tue, 1 Oct 2013 15:19:12 +0000 (16:19 +0100)
commit488a21827a257b735571468632e9f677b13bdddd
tree2ddaf1b0bf51411bfb9fa37ed1bbc8160792c208
parentd88c89db9a7550c2ed6551f73b6702faee190434
iio:ad7791: Report scale as fractional value

Move the complexity of calculating the fixed point scale to the core.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/ad7791.c