iio: accel: Add support for Sensortek STK8312
authorTiberiu Breana <tiberiu.a.breana@intel.com>
Tue, 12 May 2015 15:48:42 +0000 (18:48 +0300)
committerJonathan Cameron <jic23@kernel.org>
Sun, 17 May 2015 10:03:31 +0000 (11:03 +0100)
commit90bad33acbd82437cbf54eb1cefa6f6153fab927
treef936f79278862dff1db8a813c00bb046f92c6b78
parentc16bff4844ffa678ba0c9d077e9797506924ccdd
iio: accel: Add support for Sensortek STK8312

Minimal implementation of an IIO driver for the Sensortek
STK8312 3-axis accelerometer. Datasheet:
http://www.syi-group.com/uploadpic/data/201361817562681623.pdf

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

Signed-off-by: Tiberiu Breana <tiberiu.a.breana@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/accel/Kconfig
drivers/iio/accel/Makefile
drivers/iio/accel/stk8312.c [new file with mode: 0644]