summaryrefslogtreecommitdiffstats
path: root/drivers/iio/pressure/st_pressure.h
diff options
context:
space:
mode:
authorShrirang Bagul <shrirang.bagul@canonical.com>2016-11-24 06:33:45 +0100
committerJonathan Cameron <jic23@kernel.org>2016-12-03 09:56:27 +0100
commit9d317724cfeb9b64acf57028183e307bea39e4e6 (patch)
treed67a5d4e65e43e594278775ec8d6064c4569dd20 /drivers/iio/pressure/st_pressure.h
parentiio: st_accel: Support sensor i2c probe using acpi (diff)
downloadlinux-9d317724cfeb9b64acf57028183e307bea39e4e6.tar.xz
linux-9d317724cfeb9b64acf57028183e307bea39e4e6.zip
iio: st_pressure: Support i2c probe using acpi
Compatible strings are not available on ACPI based systems. This patch adds support to use DSDT information read from platform BIOS instead for probing st pressure sensors. Signed-off-by: Shrirang Bagul <shrirang.bagul@canonical.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/pressure/st_pressure.h')
-rw-r--r--drivers/iio/pressure/st_pressure.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/iio/pressure/st_pressure.h b/drivers/iio/pressure/st_pressure.h
index 903a21e46874..7d995937adba 100644
--- a/drivers/iio/pressure/st_pressure.h
+++ b/drivers/iio/pressure/st_pressure.h
@@ -14,6 +14,14 @@
#include <linux/types.h>
#include <linux/iio/common/st_sensors.h>
+enum st_press_type {
+ LPS001WP,
+ LPS25H,
+ LPS331AP,
+ LPS22HB,
+ ST_PRESS_MAX,
+};
+
#define LPS001WP_PRESS_DEV_NAME "lps001wp"
#define LPS25H_PRESS_DEV_NAME "lps25h"
#define LPS331AP_PRESS_DEV_NAME "lps331ap"