iio: Add Freescale MPL3115A2 pressure / temperature sensor driver
authorPeter Meerwald <pmeerw@pmeerw.net>
Tue, 12 Nov 2013 19:43:00 +0000 (19:43 +0000)
committerJonathan Cameron <jic23@kernel.org>
Sun, 24 Nov 2013 21:07:13 +0000 (21:07 +0000)
commitcc26ad455f57b42dd40ca01c4c220516218390f6
treee43d2645431f66998c6e38a0f74a9ef0f25cc5b3
parenta35e1fd26826faa5595bcb4c8ab370f331221ff7
iio: Add Freescale MPL3115A2 pressure / temperature sensor driver

I2C-controlled MEMS sensor with 20-bit pressure measurement (pascal) and
12-bit temperature measurement

driver only exposes basic functionality, see TODO remarks
datasheet: http://cache.freescale.com/files/sensors/doc/data_sheet/MPL3115A2.pdf

v2:
* store 20-bit value in 32-bit buffer element (instead of 24-bit)
* zero buffer to prevent kernel data leak to userspace
* fix mutex unlock in trigger handler (thanks Andi Shyti)

Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Reviewed-by: Andi Shyti <andi@etezian.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/pressure/Kconfig
drivers/iio/pressure/Makefile
drivers/iio/pressure/mpl3115.c [new file with mode: 0644]