ad5791.h 551 B

123456789101112131415161718192021222324
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * AD5791 SPI DAC driver
  4. *
  5. * Copyright 2011 Analog Devices Inc.
  6. */
  7. #ifndef SPI_AD5791_H_
  8. #define SPI_AD5791_H_
  9. /**
  10. * struct ad5791_platform_data - platform specific information
  11. * @vref_pos_mv: Vdd Positive Analog Supply Volatge (mV)
  12. * @vref_neg_mv: Vdd Negative Analog Supply Volatge (mV)
  13. * @use_rbuf_gain2: ext. amplifier connected in gain of two configuration
  14. */
  15. struct ad5791_platform_data {
  16. u16 vref_pos_mv;
  17. u16 vref_neg_mv;
  18. bool use_rbuf_gain2;
  19. };
  20. #endif /* SPI_AD5791_H_ */