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 353 .dt_free_map = pinctrl_utils_free_map, 354 354 }; 355 355 356 - int sprd_pmx_get_function_count(struct pinctrl_dev *pctldev) 356 + static int sprd_pmx_get_function_count(struct pinctrl_dev *pctldev) 357 357 { 358 358 return PIN_FUNC_MAX; 359 359 } 360 360 361 - const char *sprd_pmx_get_function_name(struct pinctrl_dev *pctldev, 362 - unsigned int selector) 361 + static const char *sprd_pmx_get_function_name(struct pinctrl_dev *pctldev, 362 + unsigned int selector) 363 363 { 364 364 switch (selector) { 365 365 case PIN_FUNC_1: ··· 375 375 } 376 376 } 377 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) 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 382 { 383 383 struct sprd_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev); 384 384 struct sprd_pinctrl_soc_info *info = pctl->info;