hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/drivers/iio/pressure/st_pressure.h
....@@ -1,3 +1,4 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * STMicroelectronics pressures 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_PRESS_H
....@@ -21,6 +21,7 @@
2121 LPS22HB,
2222 LPS33HW,
2323 LPS35HW,
24
+ LPS22HH,
2425 ST_PRESS_MAX,
2526 };
2627
....@@ -30,15 +31,17 @@
3031 #define LPS22HB_PRESS_DEV_NAME "lps22hb"
3132 #define LPS33HW_PRESS_DEV_NAME "lps33hw"
3233 #define LPS35HW_PRESS_DEV_NAME "lps35hw"
34
+#define LPS22HH_PRESS_DEV_NAME "lps22hh"
3335
3436 /**
3537 * struct st_sensors_platform_data - default press platform data
3638 * @drdy_int_pin: default press DRDY is available on INT1 pin.
3739 */
38
-static const struct st_sensors_platform_data default_press_pdata = {
40
+static __maybe_unused const struct st_sensors_platform_data default_press_pdata = {
3941 .drdy_int_pin = 1,
4042 };
4143
44
+const struct st_sensor_settings *st_press_get_settings(const char *name);
4245 int st_press_common_probe(struct iio_dev *indio_dev);
4346 void st_press_common_remove(struct iio_dev *indio_dev);
4447