sb_batt_dump.h 897 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * sb_batt_dump.h
  3. * Samsung Mobile Battery Dump Header
  4. *
  5. * Copyright (C) 2021 Samsung Electronics, Inc.
  6. *
  7. * This software is licensed under the terms of the GNU General Public
  8. * License version 2, as published by the Free Software Foundation, and
  9. * may be copied, distributed, and modified under those terms.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. */
  17. #ifndef __SB_BATT_DUMP_H
  18. #define __SB_BATT_DUMP_H __FILE__
  19. #include <linux/err.h>
  20. struct bd_pt;
  21. struct device;
  22. enum power_supply_property;
  23. union power_supply_propval;
  24. #if defined(CONFIG_BATTERY_LOGGING)
  25. int sb_bd_init(void);
  26. #else
  27. static inline int sb_bd_init(void)
  28. { return 0; }
  29. #endif
  30. #endif /* __SB_BATT_DUMP_H */