]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - include/linux/platform_data/st_sensors_pdata.h
Merge tag 'ntb-4.13-bugfixes' of git://github.com/jonmason/ntb
[mirror_ubuntu-artful-kernel.git] / include / linux / platform_data / st_sensors_pdata.h
CommitLineData
23cde4d6
DC
1/*
2 * STMicroelectronics sensors platform-data driver
3 *
4 * Copyright 2013 STMicroelectronics Inc.
5 *
6 * Denis Ciocca <denis.ciocca@st.com>
7 *
8 * Licensed under the GPL-2.
9 */
10
11#ifndef ST_SENSORS_PDATA_H
12#define ST_SENSORS_PDATA_H
13
14/**
15 * struct st_sensors_platform_data - Platform data for the ST sensors
16 * @drdy_int_pin: Redirect DRDY on pin 1 (1) or pin 2 (2).
17 * Available only for accelerometer and pressure sensors.
18 * Accelerometer DRDY on LSM330 available only on pin 1 (see datasheet).
0e6f6871 19 * @open_drain: set the interrupt line to be open drain if possible.
a7b8829d 20 * @spi_3wire: enable spi-3wire mode.
23cde4d6
DC
21 */
22struct st_sensors_platform_data {
23 u8 drdy_int_pin;
0e6f6871 24 bool open_drain;
a7b8829d 25 bool spi_3wire;
23cde4d6
DC
26};
27
28#endif /* ST_SENSORS_PDATA_H */