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