diff options
author | kbuild test robot <lkp@intel.com> | 2019-10-21 01:20:52 +0300 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2019-10-21 11:43:41 +0300 |
commit | e3da2ce04e120b4b035793f6eb87b459a505e88b (patch) | |
tree | bb7a662f60e6df9b67590831bde06c7ad41b265b /drivers/power | |
parent | 0cb90f071f736b51b36ca0f761cf1152ebe46600 (diff) | |
download | linux-e3da2ce04e120b4b035793f6eb87b459a505e88b.tar.xz |
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: d4ee021c410f ("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>
Diffstat (limited to 'drivers/power')
-rw-r--r-- | drivers/power/supply/cpcap-charger.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/supply/cpcap-charger.c b/drivers/power/supply/cpcap-charger.c index 40d96b8c00a8..c0d452e3dc8b 100644 --- a/drivers/power/supply/cpcap-charger.c +++ b/drivers/power/supply/cpcap-charger.c @@ -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; |