staging:iio:adc:ad7887 move to irqchip based trigger handling.
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / drivers / staging / iio / adc / ad7780.h
blob67e511c3d6f04caa9d74e18d6de2ca9a3938cede
1 /*
2 * AD7780/AD7781 SPI ADC driver
4 * Copyright 2011 Analog Devices Inc.
6 * Licensed under the GPL-2.
7 */
8 #ifndef IIO_ADC_AD7780_H_
9 #define IIO_ADC_AD7780_H_
12 * TODO: struct ad7780_platform_data needs to go into include/linux/iio
15 /* NOTE:
16 * The AD7780 doesn't feature a dedicated SPI chip select, in addition it
17 * features a dual use data out ready DOUT/RDY output.
18 * In order to avoid contentions on the SPI bus, it's therefore necessary
19 * to use spi bus locking combined with a dedicated GPIO to control the
20 * power down reset signal of the AD7780.
22 * The DOUT/RDY output must also be wired to an interrupt capable GPIO.
25 struct ad7780_platform_data {
26 u16 vref_mv;
27 int gpio_pdrst;
30 #endif /* IIO_ADC_AD7780_H_ */