diff options
author | Shrirang Bagul <shrirang.bagul@canonical.com> | 2016-11-24 08:33:43 +0300 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2016-12-03 11:56:26 +0300 |
commit | 3dc59262f76241b342316bbac8b5ffe138995b2d (patch) | |
tree | 8749b4d9b328005e6779ce2bd3497780fe4ef4ab /include/linux/iio/common | |
parent | af8bc2fb99d4eea2d026d42db18abc5f3876936a (diff) | |
download | linux-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.h | 9 |
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 */ |