]> git.karo-electronics.de Git - linux-beck.git/commit
iio:bma180: Prepare for accelerometer channels with different resolutions
authorPeter Meerwald <pmeerw@pmeerw.net>
Tue, 19 Aug 2014 22:43:00 +0000 (23:43 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sun, 14 Sep 2014 19:26:08 +0000 (20:26 +0100)
commit6377aa496a0bc40af4f66574c813bb9a807a7e3a
tree252856251cc5c6368e4a221a30e0ec890a2c2b0b
parentc1949ec18e50e1e23f3045a7c3836c289f553bb8
iio:bma180: Prepare for accelerometer channels with different resolutions

allow to specify channels resolution and compute shift assuming
16-bit registers and MSB allocation

Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Cc: Oleksandr Kravchenko <o.v.kravchenko@globallogic.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/accel/bma180.c