staging:iio:hmc5843: Use SCALE instead of magn_range
authorPeter Meerwald <pmeerw@pmeerw.net>
Wed, 16 Oct 2013 22:19:00 +0000 (23:19 +0100)
committerJonathan Cameron <jic23@kernel.org>
Thu, 17 Oct 2013 22:45:09 +0000 (23:45 +0100)
commitae6f54d2b14aa4d727169cbe088baa64ad880fd5
tree9721819737e6053634d9192d3f2702c5b243a2f7
parent701a0dc08809936a6d7ba76c347a92ee27b852ea
staging:iio:hmc5843: Use SCALE instead of magn_range

v3:
* rename _check_scale() to _get_scale_index()
v2:
* use SCALE instead of CALIBSCALE to control the range/gain
  of measurements

Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/magnetometer/hmc5843.c