Commit e3da2ce0 authored by kbuild test robot's avatar kbuild test robot Committed by Sebastian Reichel

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: d4ee021c ("power: supply: cpcap-charger: Limit voltage to 4.2V for battery")
Signed-off-by: default avatarkbuild test robot <lkp@intel.com>
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent 0cb90f07
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment