Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003  * Gas Gauge driver for SBS Compliant Gas Gauges
0004  *
0005  * Copyright (c) 2010, NVIDIA Corporation.
0006  */
0007 
0008 #ifndef __LINUX_POWER_SBS_BATTERY_H_
0009 #define __LINUX_POWER_SBS_BATTERY_H_
0010 
0011 #include <linux/power_supply.h>
0012 #include <linux/types.h>
0013 
0014 /**
0015  * struct sbs_platform_data - platform data for sbs devices
0016  * @i2c_retry_count:        # of times to retry on i2c IO failure
0017  * @poll_retry_count:       # of times to retry looking for new status after
0018  *              external change notification
0019  */
0020 struct sbs_platform_data {
0021     u32 i2c_retry_count;
0022     u32 poll_retry_count;
0023 };
0024 
0025 #endif