ad7091r-base.h 626 B

1234567891011121314151617181920212223242526
  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. #ifndef __DRIVERS_IIO_ADC_AD7091R_BASE_H__
  8. #define __DRIVERS_IIO_ADC_AD7091R_BASE_H__
  9. struct device;
  10. struct ad7091r_state;
  11. struct ad7091r_chip_info {
  12. unsigned int num_channels;
  13. const struct iio_chan_spec *channels;
  14. unsigned int vref_mV;
  15. };
  16. extern const struct regmap_config ad7091r_regmap_config;
  17. int ad7091r_probe(struct device *dev, const char *name,
  18. const struct ad7091r_chip_info *chip_info,
  19. struct regmap *map, int irq);
  20. #endif /* __DRIVERS_IIO_ADC_AD7091R_BASE_H__ */