iio: Add Freescale MMA8452Q 3-axis accelerometer driver
authorPeter Meerwald <pmeerw@pmeerw.net>
Wed, 5 Feb 2014 09:51:00 +0000 (09:51 +0000)
committerJonathan Cameron <jic23@kernel.org>
Sat, 3 May 2014 11:06:25 +0000 (12:06 +0100)
commitc7eeea93ac60aba3c037af8933a7ffc96ccd495c
tree0009ddacc7103bed21bb67fab7efef1ada7e8371
parent88cece46acb88c4032d34b8b52796e08a99c34d2
iio: Add Freescale MMA8452Q 3-axis accelerometer driver

3-axis accelerometer sensor (2/4/8 g) with 12-bit resolution
and I2C interface

many extra features are unsupported (freefall detection, orientation
change, autosleep)

datasheet is here:
http://cache.freescale.com/files/sensors/doc/data_sheet/MMA8452Q.pdf

v2: (thanks to Jonathan Cameron)
* use ARRAY_SIZE()

Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/accel/Kconfig
drivers/iio/accel/Makefile
drivers/iio/accel/mma8452.c [new file with mode: 0644]