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)
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

Simple merge