summaryrefslogtreecommitdiffstats
path: root/drivers/iio/pressure/st_pressure_i2c.c
diff options
context:
space:
mode:
authorGregor Boirie2016-04-19 11:18:32 +0200
committerJonathan Cameron2016-05-29 16:02:14 +0200
commite039e2f5b4dab9a90bb5441a154c01a051b1abfa (patch)
treeac2528cf4315fbc4b7e0dcd5206a996d0c0d6a54 /drivers/iio/pressure/st_pressure_i2c.c
parentiio: triggers: Make trigger ops structure explicitly non optional. (diff)
downloadkernel-qcow2-linux-e039e2f5b4dab9a90bb5441a154c01a051b1abfa.tar.gz
kernel-qcow2-linux-e039e2f5b4dab9a90bb5441a154c01a051b1abfa.tar.xz
kernel-qcow2-linux-e039e2f5b4dab9a90bb5441a154c01a051b1abfa.zip
iio:st_pressure:initial lps22hb sensor support
Initial support for ST LPS22HB pressure sensor. Datasheet: http://www2.st.com/resource/en/datasheet/lps22hb.pdf Features: * pressure data and timestamping channels * sampling frequency selection * interrupt based trigger * over I2C or SPI Signed-off-by: Gregor Boirie <gregor.boirie@parrot.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/pressure/st_pressure_i2c.c')
-rw-r--r--drivers/iio/pressure/st_pressure_i2c.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/iio/pressure/st_pressure_i2c.c b/drivers/iio/pressure/st_pressure_i2c.c
index 8fcf9766eaec..ed18701c68c9 100644
--- a/drivers/iio/pressure/st_pressure_i2c.c
+++ b/drivers/iio/pressure/st_pressure_i2c.c
@@ -32,6 +32,10 @@ static const struct of_device_id st_press_of_match[] = {
.compatible = "st,lps331ap-press",
.data = LPS331AP_PRESS_DEV_NAME,
},
+ {
+ .compatible = "st,lps22hb-press",
+ .data = LPS22HB_PRESS_DEV_NAME,
+ },
{},
};
MODULE_DEVICE_TABLE(of, st_press_of_match);