/include/linux/i2c/smb137b.h

https://github.com/airy09/android_kernel_sony_apq8064 · C Header · 33 lines · 9 code · 3 blank · 21 comment · 0 complexity · 74eb864ca18bfdd455dc92481aa1b0d0 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 __SMB137B_H__
  14. #define __SMB137B_H__
  15. /**
  16. * struct smb137b_platform_data
  17. * structure to pass board specific information to the smb137b charger driver
  18. * @chgcurrent: max current the smb137bchip can draw
  19. * @valid_n_gpio: gpio to debounce insertion/removal
  20. * @chg_detection_config: machine specific func to configure
  21. * insertion/removal gpio line
  22. * @batt_mah_rating: the battery current rating
  23. */
  24. struct smb137b_platform_data {
  25. int valid_n_gpio;
  26. int (*chg_detection_config) (void);
  27. int batt_mah_rating;
  28. };
  29. void smb137b_otg_power(int on);
  30. #endif