diff options
author | Peter Meerwald <pmeerw@pmeerw.net> | 2013-11-12 20:43:00 +0100 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2013-11-24 22:07:13 +0100 |
commit | cc26ad455f57b42dd40ca01c4c220516218390f6 (patch) | |
tree | e43d2645431f66998c6e38a0f74a9ef0f25cc5b3 /drivers/iio/pressure/Makefile | |
parent | iio: Remove redundant check that new trigger is different from old (diff) | |
download | linux-cc26ad455f57b42dd40ca01c4c220516218390f6.tar.xz linux-cc26ad455f57b42dd40ca01c4c220516218390f6.zip |
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>
Diffstat (limited to 'drivers/iio/pressure/Makefile')
-rw-r--r-- | drivers/iio/pressure/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/pressure/Makefile b/drivers/iio/pressure/Makefile index be71464c2752..42bb9fcf5436 100644 --- a/drivers/iio/pressure/Makefile +++ b/drivers/iio/pressure/Makefile @@ -3,6 +3,7 @@ # # When adding new entries keep the list in alphabetical order +obj-$(CONFIG_MPL3115) += mpl3115.o obj-$(CONFIG_IIO_ST_PRESS) += st_pressure.o st_pressure-y := st_pressure_core.o st_pressure-$(CONFIG_IIO_BUFFER) += st_pressure_buffer.o |