hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/include/linux/iio/common/st_sensors_i2c.h
....@@ -1,11 +1,10 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * STMicroelectronics sensors i2c library driver
34 *
45 * Copyright 2012-2013 STMicroelectronics Inc.
56 *
67 * Denis Ciocca <denis.ciocca@st.com>
7
- *
8
- * Licensed under the GPL-2.
98 */
109
1110 #ifndef ST_SENSORS_I2C_H
....@@ -13,18 +12,8 @@
1312
1413 #include <linux/i2c.h>
1514 #include <linux/iio/common/st_sensors.h>
16
-#include <linux/of.h>
1715
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
16
+int st_sensors_i2c_configure(struct iio_dev *indio_dev,
17
+ struct i2c_client *client);
2918
3019 #endif /* ST_SENSORS_I2C_H */