ads7828.h 832 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * TI ADS7828 A/D Converter platform data definition
  3. *
  4. * Copyright (c) 2012 Savoir-faire Linux Inc.
  5. * Vivien Didelot <vivien.didelot@savoirfairelinux.com>
  6. *
  7. * For further information, see the Documentation/hwmon/ads7828 file.
  8. *
  9. * This program is free software; you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License version 2 as
  11. * published by the Free Software Foundation.
  12. */
  13. #ifndef _PDATA_ADS7828_H
  14. #define _PDATA_ADS7828_H
  15. /**
  16. * struct ads7828_platform_data - optional ADS7828 connectivity info
  17. * @diff_input: Differential input mode.
  18. * @ext_vref: Use an external voltage reference.
  19. * @vref_mv: Voltage reference value, if external.
  20. */
  21. struct ads7828_platform_data {
  22. bool diff_input;
  23. bool ext_vref;
  24. unsigned int vref_mv;
  25. };
  26. #endif /* _PDATA_ADS7828_H */