sht15.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * sht15.h - support for the SHT15 Temperature and Humidity Sensor
  3. *
  4. * Copyright (c) 2009 Jonathan Cameron
  5. *
  6. * Copyright (c) 2007 Wouter Horre
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License version 2 as
  10. * published by the Free Software Foundation.
  11. *
  12. * For further information, see the Documentation/hwmon/sht15 file.
  13. */
  14. #ifndef _PDATA_SHT15_H
  15. #define _PDATA_SHT15_H
  16. /**
  17. * struct sht15_platform_data - sht15 connectivity info
  18. * @gpio_data: no. of gpio to which bidirectional data line is
  19. * connected.
  20. * @gpio_sck: no. of gpio to which the data clock is connected.
  21. * @supply_mv: supply voltage in mv. Overridden by regulator if
  22. * available.
  23. * @checksum: flag to indicate the checksum should be validated.
  24. * @no_otp_reload: flag to indicate no reload from OTP.
  25. * @low_resolution: flag to indicate the temp/humidity resolution to use.
  26. */
  27. struct sht15_platform_data {
  28. int gpio_data;
  29. int gpio_sck;
  30. int supply_mv;
  31. bool checksum;
  32. bool no_otp_reload;
  33. bool low_resolution;
  34. };
  35. #endif /* _PDATA_SHT15_H */