forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/drivers/iio/gyro/st_gyro.h
....@@ -1,3 +1,4 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * STMicroelectronics gyroscopes 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_GYRO_H
....@@ -28,10 +28,11 @@
2828 * struct st_sensors_platform_data - gyro platform data
2929 * @drdy_int_pin: DRDY on gyros is available only on INT2 pin.
3030 */
31
-static const struct st_sensors_platform_data gyro_pdata = {
31
+static __maybe_unused const struct st_sensors_platform_data gyro_pdata = {
3232 .drdy_int_pin = 2,
3333 };
3434
35
+const struct st_sensor_settings *st_gyro_get_settings(const char *name);
3536 int st_gyro_common_probe(struct iio_dev *indio_dev);
3637 void st_gyro_common_remove(struct iio_dev *indio_dev);
3738