iio: accel: Add support for Freescale MMA7660FC
authorConstantin Musca <constantin.musca@intel.com>
Tue, 3 May 2016 12:05:45 +0000 (15:05 +0300)
committerJonathan Cameron <jic23@kernel.org>
Wed, 4 May 2016 09:44:17 +0000 (10:44 +0100)
commit32133be6768257726b57094f673415418cb3dc48
treebd5a2d150dbe414bf745854bb9bc3e6a965028c7
parenta8175ba33542d625430b66a805ef315ea3b4e755
iio: accel: Add support for Freescale MMA7660FC

Minimal implementation of an IIO driver for the Freescale
MMA7660FC 3-axis accelerometer. Datasheet:
http://www.nxp.com/files/sensors/doc/data_sheet/MMA7660FC.pdf

Includes:
- ACPI support;
- read_raw for x,y,z axes;
- reading and setting the scale (range) parameter.
- power management

Signed-off-by: Constantin Musca <constantin.musca@intel.com>
Reviewed-by: Martin Klepplinger <martink@posteo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/accel/Kconfig
drivers/iio/accel/Makefile
drivers/iio/accel/mma7660.c [new file with mode: 0644]