mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 08:19:28 +00:00
power: supply: cpcap-charger: cpcap_charger_voltage_to_regval() can be static
Add 'static' keyword to internal function as reported by sparse
using the following configuration:
make ARCH=x86_64 allmodconfig
make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
Fixes: d4ee021c41
("power: supply: cpcap-charger: Limit voltage to 4.2V for battery")
Signed-off-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
This commit is contained in:
parent
0cb90f071f
commit
e3da2ce04e
1 changed files with 1 additions and 1 deletions
|
@ -560,7 +560,7 @@ static void cpcap_charger_update_state(struct cpcap_charger_ddata *ddata,
|
|||
dev_dbg(ddata->dev, "state: %s\n", status);
|
||||
}
|
||||
|
||||
int cpcap_charger_voltage_to_regval(int voltage)
|
||||
static int cpcap_charger_voltage_to_regval(int voltage)
|
||||
{
|
||||
int offset;
|
||||
|
||||
|
|
Loading…
Reference in a new issue