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:
kbuild test robot 2019-10-21 06:20:52 +08:00 committed by Sebastian Reichel
parent 0cb90f071f
commit e3da2ce04e
1 changed files with 1 additions and 1 deletions

View File

@ -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;