summaryrefslogtreecommitdiff
path: root/drivers/iio/pressure/st_pressure_spi.c
diff options
context:
space:
mode:
authorMartyn Welch <martyn.welch@collabora.co.uk>2022-09-09 19:16:10 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2022-09-21 20:42:53 +0300
commit92ba0ab945aee1f3d23b045c893290380e3e059c (patch)
tree3d72e7e3ba5d7642f5c985e65ce60d1c7768d319 /drivers/iio/pressure/st_pressure_spi.c
parentb402783711bfe93e9da0e3f9eab3aee95cece29d (diff)
downloadlinux-92ba0ab945aee1f3d23b045c893290380e3e059c.tar.xz
iio: pressure: st_pressure: Add support for LPS22DF
Add support for ST LPS22DF pressure sensor. Datasheet: https://www.st.com/resource/en/datasheet/lps22df.pdf Signed-off-by: Martyn Welch <martyn.welch@collabora.co.uk> Link: https://lore.kernel.org/r/20220909161611.780720-2-martyn.welch@collabora.co.uk Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/pressure/st_pressure_spi.c')
-rw-r--r--drivers/iio/pressure/st_pressure_spi.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/iio/pressure/st_pressure_spi.c b/drivers/iio/pressure/st_pressure_spi.c
index bfab8e7fb061..25cca5ad7c55 100644
--- a/drivers/iio/pressure/st_pressure_spi.c
+++ b/drivers/iio/pressure/st_pressure_spi.c
@@ -51,6 +51,10 @@ static const struct of_device_id st_press_of_match[] = {
.compatible = "st,lps22hh",
.data = LPS22HH_PRESS_DEV_NAME,
},
+ {
+ .compatible = "st,lps22df",
+ .data = LPS22DF_PRESS_DEV_NAME,
+ },
{},
};
MODULE_DEVICE_TABLE(of, st_press_of_match);
@@ -97,6 +101,7 @@ static const struct spi_device_id st_press_id_table[] = {
{ LPS33HW_PRESS_DEV_NAME },
{ LPS35HW_PRESS_DEV_NAME },
{ LPS22HH_PRESS_DEV_NAME },
+ { LPS22DF_PRESS_DEV_NAME },
{ "lps001wp-press" },
{ "lps25h-press", },
{ "lps331ap-press" },