Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
[linux-2.6-microblaze.git] / include / linux / platform_data / st_sensors_pdata.h
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * STMicroelectronics sensors platform-data driver
4  *
5  * Copyright 2013 STMicroelectronics Inc.
6  *
7  * Denis Ciocca <denis.ciocca@st.com>
8  */
9
10 #ifndef ST_SENSORS_PDATA_H
11 #define ST_SENSORS_PDATA_H
12
13 /**
14  * struct st_sensors_platform_data - Platform data for the ST sensors
15  * @drdy_int_pin: Redirect DRDY on pin 1 (1) or pin 2 (2).
16  *      Available only for accelerometer and pressure sensors.
17  *      Accelerometer DRDY on LSM330 available only on pin 1 (see datasheet).
18  * @open_drain: set the interrupt line to be open drain if possible.
19  * @spi_3wire: enable spi-3wire mode.
20  * @pullups: enable/disable i2c controller pullup resistors.
21  * @wakeup_source: enable/disable device as wakeup generator.
22  */
23 struct st_sensors_platform_data {
24         u8 drdy_int_pin;
25         bool open_drain;
26         bool spi_3wire;
27         bool pullups;
28         bool wakeup_source;
29 };
30
31 #endif /* ST_SENSORS_PDATA_H */