root/include/linux/platform_data/st_sensors_pdata.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   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  */
  22 struct 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 */

/* [<][>][^][v][top][bottom][index][help] */