Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pinctrl: sprd: make three local functions static

The functions sprd_pmx_get_function_count, sprd_pmx_get_function_name
and sprd_pmx_get_function_groups are local to the source and do not
need to be in global scope, so make them static.

Cleans up sparse warnings:
"symbol 'sprd_pmx_get_function_count' was not declared. Should it be
static?"
"symbol 'sprd_pmx_get_function_name' was not declared. Should it be
static?"
"symbol 'sprd_pmx_get_function_groups' was not declared. Should it be
static?"

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Colin Ian King and committed by
Linus Walleij
045b5792 6d363bd1

+7 -7
+7 -7
drivers/pinctrl/sprd/pinctrl-sprd.c
··· 353 .dt_free_map = pinctrl_utils_free_map, 354 }; 355 356 - int sprd_pmx_get_function_count(struct pinctrl_dev *pctldev) 357 { 358 return PIN_FUNC_MAX; 359 } 360 361 - const char *sprd_pmx_get_function_name(struct pinctrl_dev *pctldev, 362 - unsigned int selector) 363 { 364 switch (selector) { 365 case PIN_FUNC_1: ··· 375 } 376 } 377 378 - int sprd_pmx_get_function_groups(struct pinctrl_dev *pctldev, 379 - unsigned int selector, 380 - const char * const **groups, 381 - unsigned int * const num_groups) 382 { 383 struct sprd_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev); 384 struct sprd_pinctrl_soc_info *info = pctl->info;
··· 353 .dt_free_map = pinctrl_utils_free_map, 354 }; 355 356 + static int sprd_pmx_get_function_count(struct pinctrl_dev *pctldev) 357 { 358 return PIN_FUNC_MAX; 359 } 360 361 + static const char *sprd_pmx_get_function_name(struct pinctrl_dev *pctldev, 362 + unsigned int selector) 363 { 364 switch (selector) { 365 case PIN_FUNC_1: ··· 375 } 376 } 377 378 + static int sprd_pmx_get_function_groups(struct pinctrl_dev *pctldev, 379 + unsigned int selector, 380 + const char * const **groups, 381 + unsigned int * const num_groups) 382 { 383 struct sprd_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev); 384 struct sprd_pinctrl_soc_info *info = pctl->info;