ads7828.h 690 B

1234567891011121314151617181920212223242526
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * TI ADS7828 A/D Converter platform data definition
  4. *
  5. * Copyright (c) 2012 Savoir-faire Linux Inc.
  6. * Vivien Didelot <[email protected]>
  7. *
  8. * For further information, see the Documentation/hwmon/ads7828.rst file.
  9. */
  10. #ifndef _PDATA_ADS7828_H
  11. #define _PDATA_ADS7828_H
  12. /**
  13. * struct ads7828_platform_data - optional ADS7828 connectivity info
  14. * @diff_input: Differential input mode.
  15. * @ext_vref: Use an external voltage reference.
  16. * @vref_mv: Voltage reference value, if external.
  17. */
  18. struct ads7828_platform_data {
  19. bool diff_input;
  20. bool ext_vref;
  21. unsigned int vref_mv;
  22. };
  23. #endif /* _PDATA_ADS7828_H */