diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2021-03-08 15:31:47 +0300 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2021-04-14 18:03:30 +0300 |
commit | 5a2cf054221a78f394b4c0f4c0ed1ae94a710ae3 (patch) | |
tree | 808436133a2090144bc1bf5bfa60f6f31c53fb52 /drivers | |
parent | 16f961544bfd7170f75d805d7585e09023671dbc (diff) | |
download | linux-5a2cf054221a78f394b4c0f4c0ed1ae94a710ae3.tar.xz |
mfd: ene-kb3930: Make local symbol 'kb3930_power_off' static
The sparse tool complains as follows:
drivers/mfd/ene-kb3930.c:36:15: warning: symbol 'kb3930_power_off' was not declared. Should it be static?
The symbol is not used outside of this file.
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Lubomir Rintel <lkundrak@v3.sk>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mfd/ene-kb3930.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/ene-kb3930.c b/drivers/mfd/ene-kb3930.c index 83243e668e3f..1b73318d1f1f 100644 --- a/drivers/mfd/ene-kb3930.c +++ b/drivers/mfd/ene-kb3930.c @@ -33,7 +33,7 @@ struct kb3930 { struct gpio_descs *off_gpios; }; -struct kb3930 *kb3930_power_off; +static struct kb3930 *kb3930_power_off; #define EC_GPIO_WAVE 0 #define EC_GPIO_OFF_MODE 1 |