aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/iio
diff options
context:
space:
mode:
authorShrirang Bagul <shrirang.bagul@canonical.com>2016-11-24 13:33:43 +0800
committerJonathan Cameron <jic23@kernel.org>2016-12-03 08:56:26 +0000
commit3dc59262f76241b342316bbac8b5ffe138995b2d (patch)
tree8749b4d9b328005e6779ce2bd3497780fe4ef4ab /include/linux/iio
parentstaging: unisys: visorbus: Remove two passthrough postcode macros (diff)
downloadlinux-dev-3dc59262f76241b342316bbac8b5ffe138995b2d.tar.xz
linux-dev-3dc59262f76241b342316bbac8b5ffe138995b2d.zip
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')
-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 */