iio: mma8452: use iio event type IIO_EV_TYPE_MAG
authorMartin Kepplinger <martink@posteo.de>
Sun, 5 Jul 2015 17:50:18 +0000 (19:50 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 19 Jul 2015 13:32:18 +0000 (14:32 +0100)
commitc5d0db0690ff0a963dc082e7645268c466bf9a84
tree4cc357ceac84c391071e95eff8af5bc351f133da
parent41be6a0d5aa3c4fcb472f3d44251683b085b00a3
iio: mma8452: use iio event type IIO_EV_TYPE_MAG

IIO_EV_TYPE_THRESH in rising direction describes an event where the
threshold is crossed in rising direction, positive or negative values
being possible. This is not the case here.

Since the threshold is no signed value and only the magnitude is compared,
IIO_EV_TYPE_MAG is what describes the behaviour of these devices, see the
sysfs-bus-iio ABI Documentation.

Signed-off-by: Martin Kepplinger <martin.kepplinger@theobroma-systems.com>
Signed-off-by: Christoph Muellner <christoph.muellner@theobroma-systems.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/accel/mma8452.c