Paul Cercueil | ca69300 | 2019-11-15 15:57:20 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
| 2 | /* |
| 3 | * AD7091RX Analog to Digital converter driver |
| 4 | * |
| 5 | * Copyright 2014-2019 Analog Devices Inc. |
| 6 | */ |
| 7 | |
| 8 | #ifndef __DRIVERS_IIO_ADC_AD7091R_BASE_H__ |
| 9 | #define __DRIVERS_IIO_ADC_AD7091R_BASE_H__ |
| 10 | |
| 11 | struct device; |
| 12 | struct ad7091r_state; |
| 13 | |
| 14 | struct ad7091r_chip_info { |
| 15 | unsigned int num_channels; |
| 16 | const struct iio_chan_spec *channels; |
Paul Cercueil | 260442c | 2019-11-15 15:57:21 +0200 | [diff] [blame] | 17 | unsigned int vref_mV; |
Paul Cercueil | ca69300 | 2019-11-15 15:57:20 +0200 | [diff] [blame] | 18 | }; |
| 19 | |
| 20 | extern const struct regmap_config ad7091r_regmap_config; |
| 21 | |
| 22 | int ad7091r_probe(struct device *dev, const char *name, |
| 23 | const struct ad7091r_chip_info *chip_info, |
| 24 | struct regmap *map, int irq); |
| 25 | |
| 26 | #endif /* __DRIVERS_IIO_ADC_AD7091R_BASE_H__ */ |