Linux-libre 4.15.7-gnu
[librecmc/linux-libre.git] / include / linux / iio / common / st_sensors_i2c.h
1 /*
2  * STMicroelectronics sensors i2c library driver
3  *
4  * Copyright 2012-2013 STMicroelectronics Inc.
5  *
6  * Denis Ciocca <denis.ciocca@st.com>
7  *
8  * Licensed under the GPL-2.
9  */
10
11 #ifndef ST_SENSORS_I2C_H
12 #define ST_SENSORS_I2C_H
13
14 #include <linux/i2c.h>
15 #include <linux/iio/common/st_sensors.h>
16 #include <linux/of.h>
17
18 void st_sensors_i2c_configure(struct iio_dev *indio_dev,
19                 struct i2c_client *client, struct st_sensor_data *sdata);
20
21 #ifdef CONFIG_ACPI
22 int st_sensors_match_acpi_device(struct device *dev);
23 #else
24 static inline int st_sensors_match_acpi_device(struct device *dev)
25 {
26         return -ENODEV;
27 }
28 #endif
29
30 #endif /* ST_SENSORS_I2C_H */