summaryrefslogtreecommitdiffstats
path: root/include
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
parentaf8bc2fb99d4eea2d026d42db18abc5f3876936a (diff)
downloadop-kernel-dev-3dc59262f76241b342316bbac8b5ffe138995b2d.zip
op-kernel-dev-3dc59262f76241b342316bbac8b5ffe138995b2d.tar.gz
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')
-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 1796af0..254de3c 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 */
OpenPOWER on IntegriCloud