summaryrefslogtreecommitdiff
path: root/include/linux/iio/common
diff options
context:
space:
mode:
authorShrirang Bagul <shrirang.bagul@canonical.com>2016-11-24 08:33:43 +0300
committerJonathan Cameron <jic23@kernel.org>2016-12-03 11:56:26 +0300
commit3dc59262f76241b342316bbac8b5ffe138995b2d (patch)
tree8749b4d9b328005e6779ce2bd3497780fe4ef4ab /include/linux/iio/common
parentaf8bc2fb99d4eea2d026d42db18abc5f3876936a (diff)
downloadlinux-3dc59262f76241b342316bbac8b5ffe138995b2d.tar.xz
iio: st_sensors: match sensors using ACPI handle
Add support to match st sensors using information passed from ACPI DST tables. Signed-off-by: Shrirang Bagul <shrirang.bagul@canonical.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'include/linux/iio/common')
-rw-r--r--include/linux/iio/common/st_sensors_i2c.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/iio/common/st_sensors_i2c.h b/include/linux/iio/common/st_sensors_i2c.h
index 1796af093368..254de3c7dde8 100644
--- a/include/linux/iio/common/st_sensors_i2c.h
+++ b/include/linux/iio/common/st_sensors_i2c.h
@@ -28,4 +28,13 @@ static inline void st_sensors_of_i2c_probe(struct i2c_client *client,
}
#endif
+#ifdef CONFIG_ACPI
+int st_sensors_match_acpi_device(struct device *dev);
+#else
+static inline int st_sensors_match_acpi_device(struct device *dev)
+{
+ return -ENODEV;
+}
+#endif
+
#endif /* ST_SENSORS_I2C_H */