]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
staging:iio:adis16260: Simplify calibscale and caliboffset reading
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 17 Jul 2013 14:44:00 +0000 (15:44 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 3 Aug 2013 17:41:20 +0000 (18:41 +0100)
commit73149badce2dbd9483e1af7010c4fb6425500ec0
tree8112d6ac48bce19d179dc3670f9ce1e3c5587a8a
parentb45ae32bd027d7b7a65cc50ce5484446077f2648
staging:iio:adis16260: Simplify calibscale and caliboffset reading

All channels for this device have the same number of bits for calibscale and
caliboffset, there is no need to determine it dynamically based on the channel
type. Also there is no locking required since adis_read_reg_16() will take care
of proper locking on its own.

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