sbs-battery.h 602 B

12345678910111213141516171819202122232425
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * Gas Gauge driver for SBS Compliant Gas Gauges
  4. *
  5. * Copyright (c) 2010, NVIDIA Corporation.
  6. */
  7. #ifndef __LINUX_POWER_SBS_BATTERY_H_
  8. #define __LINUX_POWER_SBS_BATTERY_H_
  9. #include <linux/power_supply.h>
  10. #include <linux/types.h>
  11. /**
  12. * struct sbs_platform_data - platform data for sbs devices
  13. * @i2c_retry_count: # of times to retry on i2c IO failure
  14. * @poll_retry_count: # of times to retry looking for new status after
  15. * external change notification
  16. */
  17. struct sbs_platform_data {
  18. u32 i2c_retry_count;
  19. u32 poll_retry_count;
  20. };
  21. #endif