Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v5.2-rc5 29 lines 818 B view raw
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 */ 22struct st_sensors_platform_data { 23 u8 drdy_int_pin; 24 bool open_drain; 25 bool spi_3wire; 26 bool pullups; 27}; 28 29#endif /* ST_SENSORS_PDATA_H */