xref: /OK3568_Linux_fs/kernel/drivers/iio/adc/ad7091r-base.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun  * AD7091RX Analog to Digital converter driver
4*4882a593Smuzhiyun  *
5*4882a593Smuzhiyun  * Copyright 2014-2019 Analog Devices Inc.
6*4882a593Smuzhiyun  */
7*4882a593Smuzhiyun 
8*4882a593Smuzhiyun #ifndef __DRIVERS_IIO_ADC_AD7091R_BASE_H__
9*4882a593Smuzhiyun #define __DRIVERS_IIO_ADC_AD7091R_BASE_H__
10*4882a593Smuzhiyun 
11*4882a593Smuzhiyun struct device;
12*4882a593Smuzhiyun struct ad7091r_state;
13*4882a593Smuzhiyun 
14*4882a593Smuzhiyun struct ad7091r_chip_info {
15*4882a593Smuzhiyun 	unsigned int num_channels;
16*4882a593Smuzhiyun 	const struct iio_chan_spec *channels;
17*4882a593Smuzhiyun 	unsigned int vref_mV;
18*4882a593Smuzhiyun };
19*4882a593Smuzhiyun 
20*4882a593Smuzhiyun extern const struct regmap_config ad7091r_regmap_config;
21*4882a593Smuzhiyun 
22*4882a593Smuzhiyun int ad7091r_probe(struct device *dev, const char *name,
23*4882a593Smuzhiyun 		const struct ad7091r_chip_info *chip_info,
24*4882a593Smuzhiyun 		struct regmap *map, int irq);
25*4882a593Smuzhiyun 
26*4882a593Smuzhiyun #endif /* __DRIVERS_IIO_ADC_AD7091R_BASE_H__ */
27