David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 2 | /* |
| 3 | * Gas Gauge driver for SBS Compliant Gas Gauges |
| 4 | * |
| 5 | * Copyright (c) 2010, NVIDIA Corporation. |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef __LINUX_POWER_SBS_BATTERY_H_ |
| 9 | #define __LINUX_POWER_SBS_BATTERY_H_ |
| 10 | |
| 11 | #include <linux/power_supply.h> |
| 12 | #include <linux/types.h> |
| 13 | |
| 14 | /** |
| 15 | * struct sbs_platform_data - platform data for sbs devices |
| 16 | * @i2c_retry_count: # of times to retry on i2c IO failure |
| 17 | * @poll_retry_count: # of times to retry looking for new status after |
| 18 | * external change notification |
| 19 | */ |
| 20 | struct sbs_platform_data { |
| 21 | u32 i2c_retry_count; |
| 22 | u32 poll_retry_count; |
| 23 | }; |
| 24 | |
| 25 | #endif |