/include/linux/i2c/isl9519.h

https://github.com/airy09/android_kernel_sony_apq8064 · C Header · 38 lines · 12 code · 2 blank · 24 comment · 0 complexity · 660dddf2ad8c7ea46612811081543aaa MD5 · raw file

  1. /* Copyright (c) 2010-2011, The Linux Foundation. All rights reserved.
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License version 2 and
  5. * only version 2 as published by the Free Software Foundation.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. *
  12. */
  13. #ifndef __ISL9519_H__
  14. #define __ISL9519_H__
  15. /**
  16. * struct isl_platform_data
  17. * @chgcurrent: max current the islchip can draw
  18. * @valid_irq: interrupt for insertion/removal notification
  19. * @valid_n_gpio: gpio to debounce insertion/removal
  20. * @valid_config: machine specific func to configure gpio line
  21. * @max_system_voltage: the max voltage isl should charge battery to
  22. * @min_system_voltage: the min voltage isl should trkl charge the
  23. * battery
  24. * @term_current: the batt current when isl charging should stop
  25. * @input_current: the max current isl should pull from the adapter
  26. */
  27. struct isl_platform_data {
  28. int chgcurrent;
  29. int valid_n_gpio;
  30. int (*chg_detection_config) (void);
  31. int max_system_voltage;
  32. int min_system_voltage;
  33. int term_current;
  34. int input_current;
  35. };
  36. #endif