summaryrefslogtreecommitdiff
path: root/drivers/iio/pressure/st_pressure_i2c.c
diff options
context:
space:
mode:
authorGregor Boirie <gregor.boirie@parrot.com>2016-04-19 12:18:32 +0300
committerJonathan Cameron <jic23@kernel.org>2016-05-29 17:02:14 +0300
commite039e2f5b4dab9a90bb5441a154c01a051b1abfa (patch)
treeac2528cf4315fbc4b7e0dcd5206a996d0c0d6a54 /drivers/iio/pressure/st_pressure_i2c.c
parentef2d71d6b7fbbb57e332883d8fad39f2adb9199e (diff)
downloadlinux-e039e2f5b4dab9a90bb5441a154c01a051b1abfa.tar.xz
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);