Staging
v0.8.1
https://github.com/torvalds/linux
Raw File
Tip revision: 8a749fd1a8720d4619c91c8b6e7528c0a355c0aa authored by Linus Torvalds on 01 October 2023, 21:15:13 UTC
Linux 6.6-rc4
Tip revision: 8a749fd
sbs-battery.h
/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * Gas Gauge driver for SBS Compliant Gas Gauges
 *
 * Copyright (c) 2010, NVIDIA Corporation.
 */

#ifndef __LINUX_POWER_SBS_BATTERY_H_
#define __LINUX_POWER_SBS_BATTERY_H_

#include <linux/power_supply.h>
#include <linux/types.h>

/**
 * struct sbs_platform_data - platform data for sbs devices
 * @i2c_retry_count:		# of times to retry on i2c IO failure
 * @poll_retry_count:		# of times to retry looking for new status after
 *				external change notification
 */
struct sbs_platform_data {
	u32 i2c_retry_count;
	u32 poll_retry_count;
};

#endif
back to top