2019-05-19 21:51:31 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
2011-03-01 08:55:28 +08:00
|
|
|
/*
|
2011-12-06 09:50:46 +08:00
|
|
|
* Gas Gauge driver for SBS Compliant Gas Gauges
|
2011-03-01 08:55:28 +08:00
|
|
|
*
|
|
|
|
* Copyright (c) 2010, NVIDIA Corporation.
|
|
|
|
*/
|
|
|
|
|
2011-12-06 09:50:46 +08:00
|
|
|
#ifndef __LINUX_POWER_SBS_BATTERY_H_
|
|
|
|
#define __LINUX_POWER_SBS_BATTERY_H_
|
2011-03-01 08:55:28 +08:00
|
|
|
|
|
|
|
#include <linux/power_supply.h>
|
|
|
|
#include <linux/types.h>
|
|
|
|
|
|
|
|
/**
|
2011-12-06 09:50:46 +08:00
|
|
|
* struct sbs_platform_data - platform data for sbs devices
|
2011-03-01 08:55:29 +08:00
|
|
|
* @i2c_retry_count: # of times to retry on i2c IO failure
|
2011-05-25 03:05:59 +08:00
|
|
|
* @poll_retry_count: # of times to retry looking for new status after
|
|
|
|
* external change notification
|
2011-03-01 08:55:28 +08:00
|
|
|
*/
|
2011-12-06 09:50:46 +08:00
|
|
|
struct sbs_platform_data {
|
2016-09-20 09:01:12 +08:00
|
|
|
u32 i2c_retry_count;
|
|
|
|
u32 poll_retry_count;
|
2011-03-01 08:55:28 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|