forked from mirrors/linux
		
	 fda8d26e61
			
		
	
	
		fda8d26e61
		
	
	
	
	
		
			
			Based on 1 normalized pattern(s): licensed under the gpl 2 extracted by the scancode license scanner the SPDX license identifier GPL-2.0-only has been chosen to replace the boilerplate/reference in 135 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Allison Randal <allison@lohutok.net> Reviewed-by: Richard Fontana <rfontana@redhat.com> Reviewed-by: Alexios Zavras <alexios.zavras@intel.com> Reviewed-by: Steve Winslow <swinslow@gmail.com> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190528170026.071193225@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
		
			
				
	
	
		
			29 lines
		
	
	
	
		
			818 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
	
		
			818 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /* SPDX-License-Identifier: GPL-2.0-only */
 | |
| /*
 | |
|  * STMicroelectronics sensors platform-data driver
 | |
|  *
 | |
|  * Copyright 2013 STMicroelectronics Inc.
 | |
|  *
 | |
|  * Denis Ciocca <denis.ciocca@st.com>
 | |
|  */
 | |
| 
 | |
| #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.
 | |
|  * @spi_3wire: enable spi-3wire mode.
 | |
|  * @pullups: enable/disable i2c controller pullup resistors.
 | |
|  */
 | |
| struct st_sensors_platform_data {
 | |
| 	u8 drdy_int_pin;
 | |
| 	bool open_drain;
 | |
| 	bool spi_3wire;
 | |
| 	bool pullups;
 | |
| };
 | |
| 
 | |
| #endif /* ST_SENSORS_PDATA_H */
 |