hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/iio/accel/st_accel.h
....@@ -1,3 +1,4 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * STMicroelectronics accelerometers driver
34 *
....@@ -5,7 +6,6 @@
56 *
67 * Denis Ciocca <denis.ciocca@st.com>
78 * v. 1.0.0
8
- * Licensed under the GPL-2.
99 */
1010
1111 #ifndef ST_ACCEL_H
....@@ -34,6 +34,8 @@
3434 LIS3LV02DL,
3535 LIS2DW12,
3636 LIS3DHH,
37
+ LIS2DE12,
38
+ LIS2HH12,
3739 ST_ACCEL_MAX,
3840 };
3941
....@@ -56,15 +58,19 @@
5658 #define LNG2DM_ACCEL_DEV_NAME "lng2dm"
5759 #define LIS2DW12_ACCEL_DEV_NAME "lis2dw12"
5860 #define LIS3DHH_ACCEL_DEV_NAME "lis3dhh"
61
+#define LIS3DE_ACCEL_DEV_NAME "lis3de"
62
+#define LIS2DE12_ACCEL_DEV_NAME "lis2de12"
63
+#define LIS2HH12_ACCEL_DEV_NAME "lis2hh12"
5964
6065 /**
6166 * struct st_sensors_platform_data - default accel platform data
6267 * @drdy_int_pin: default accel DRDY is available on INT1 pin.
6368 */
64
-static const struct st_sensors_platform_data default_accel_pdata = {
69
+static __maybe_unused const struct st_sensors_platform_data default_accel_pdata = {
6570 .drdy_int_pin = 1,
6671 };
6772
73
+const struct st_sensor_settings *st_accel_get_settings(const char *name);
6874 int st_accel_common_probe(struct iio_dev *indio_dev);
6975 void st_accel_common_remove(struct iio_dev *indio_dev);
7076