]> git.karo-electronics.de Git - karo-tx-linux.git/commit
iio:accel:bma180: Use modifier instead of index in channel specification
authorPeter Meerwald <pmeerw@pmeerw.net>
Wed, 1 Oct 2014 20:37:00 +0000 (21:37 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 8 Feb 2014 11:31:50 +0000 (11:31 +0000)
commit5585215b6daabf898b4d40f33d1b8c1d41e85018
treeea2bbb80a5847400272691b94902a1770c17def0
parentc76782d151dab7ecfdcdf9a01561c2d61d9b490f
iio:accel:bma180: Use modifier instead of index in channel specification

This driver was not complying with the ABI and the purpose of this patch
is to bring it inline so that userspace will correctly identify the channels.

Should use channel modifiers (X/Y/Z), not channel indices
timestamp channel has scan index 3, not 4

Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Cc: Kravchenko Oleksandr <x0199363@ti.com>
Cc: Stable@vger.kernel.org
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/accel/bma180.c