hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
kernel/include/linux/platform_data/st_sensors_pdata.h
....@@ -1,11 +1,10 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * STMicroelectronics sensors platform-data driver
34 *
45 * Copyright 2013 STMicroelectronics Inc.
56 *
67 * Denis Ciocca <denis.ciocca@st.com>
7
- *
8
- * Licensed under the GPL-2.
98 */
109
1110 #ifndef ST_SENSORS_PDATA_H
....@@ -18,11 +17,15 @@
1817 * Accelerometer DRDY on LSM330 available only on pin 1 (see datasheet).
1918 * @open_drain: set the interrupt line to be open drain if possible.
2019 * @spi_3wire: enable spi-3wire mode.
20
+ * @pullups: enable/disable i2c controller pullup resistors.
21
+ * @wakeup_source: enable/disable device as wakeup generator.
2122 */
2223 struct st_sensors_platform_data {
2324 u8 drdy_int_pin;
2425 bool open_drain;
2526 bool spi_3wire;
27
+ bool pullups;
28
+ bool wakeup_source;
2629 };
2730
2831 #endif /* ST_SENSORS_PDATA_H */