summaryrefslogtreecommitdiffstats
path: root/include/linux/platform_data/st_sensors_pdata.h
blob: 79b0e4cdb8141a10e73affb9a837d5bcc5f00a2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
 * STMicroelectronics sensors platform-data driver
 *
 * Copyright 2013 STMicroelectronics Inc.
 *
 * Denis Ciocca <denis.ciocca@st.com>
 *
 * Licensed under the GPL-2.
 */

#ifndef ST_SENSORS_PDATA_H
#define ST_SENSORS_PDATA_H

/**
 * struct st_sensors_platform_data - Platform data for the ST sensors
 * @drdy_int_pin: Redirect DRDY on pin 1 (1) or pin 2 (2).
 *	Available only for accelerometer and pressure sensors.
 *	Accelerometer DRDY on LSM330 available only on pin 1 (see datasheet).
 * @open_drain: set the interrupt line to be open drain if possible.
 */
struct st_sensors_platform_data {
	u8 drdy_int_pin;
	bool open_drain;
};

#endif /* ST_SENSORS_PDATA_H */
OpenPOWER on IntegriCloud