Skip to content

Commit 045b579

Browse files
Colin Ian KingLinus Walleij
authored andcommitted
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>
1 parent 6d363bd commit 045b579

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

‎drivers/pinctrl/sprd/pinctrl-sprd.c‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -353,13 +353,13 @@ static const struct pinctrl_ops sprd_pctrl_ops = {
353353
.dt_free_map = pinctrl_utils_free_map,
354354
};
355355

356-
int sprd_pmx_get_function_count(struct pinctrl_dev *pctldev)
356+
static int sprd_pmx_get_function_count(struct pinctrl_dev *pctldev)
357357
{
358358
return PIN_FUNC_MAX;
359359
}
360360

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)
363363
{
364364
switch (selector) {
365365
case PIN_FUNC_1:
@@ -375,10 +375,10 @@ const char *sprd_pmx_get_function_name(struct pinctrl_dev *pctldev,
375375
}
376376
}
377377

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)
382382
{
383383
struct sprd_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev);
384384
struct sprd_pinctrl_soc_info *info = pctl->info;

0 commit comments

Comments
 (0)