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