Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * AD7091RX Analog to Digital converter driver
0004  *
0005  * Copyright 2014-2019 Analog Devices Inc.
0006  */
0007 
0008 #ifndef __DRIVERS_IIO_ADC_AD7091R_BASE_H__
0009 #define __DRIVERS_IIO_ADC_AD7091R_BASE_H__
0010 
0011 struct device;
0012 struct ad7091r_state;
0013 
0014 struct ad7091r_chip_info {
0015     unsigned int num_channels;
0016     const struct iio_chan_spec *channels;
0017     unsigned int vref_mV;
0018 };
0019 
0020 extern const struct regmap_config ad7091r_regmap_config;
0021 
0022 int ad7091r_probe(struct device *dev, const char *name,
0023         const struct ad7091r_chip_info *chip_info,
0024         struct regmap *map, int irq);
0025 
0026 #endif /* __DRIVERS_IIO_ADC_AD7091R_BASE_H__ */