iio: mma8452: use enum for channel index
authorMartin Kepplinger <martink@posteo.de>
Tue, 15 Dec 2015 16:45:00 +0000 (17:45 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 19 Dec 2015 16:45:42 +0000 (16:45 +0000)
commite60378c17c7eebf8636fb6831bff1efc9a434521
tree4ea501819dc55b2c359f4ad2504b707f38a7a2e1
parent8e34f2c8d2688a84f516d698aa8a8438a668265f
iio: mma8452: use enum for channel index

This gets rid of some magic numbers by adding an enum.

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