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: NPeter Meerwald <pmeerw@pmeerw.net> Reviewed-by: NAndi Shyti <andi@etezian.org> Signed-off-by: NJonathan Cameron <jic23@kernel.org>
Showing
drivers/iio/pressure/mpl3115.c
0 → 100644
想要评论请 注册 或 登录