Skip to content

Commit a5fd6b6

Browse files
krzklinusw
authored andcommitted
pinctrl: meson: Drop unused aml_pctl_find_group_by_name()
aml_pctl_find_group_by_name() is not used anywhere, as reported by W=1 clang build: pinctrl-amlogic-a4.c:600:2: error: unused function 'aml_pctl_find_group_by_name' [-Werror,-Wunused-function] Fixes: 6e9be3a ("pinctrl: Add driver support for Amlogic SoCs") Signed-off-by: Krzysztof Kozlowski <[email protected]> Reviewed-by: Xianwei Zhao <[email protected]> Reviewed-by: Martin Blumenstingl <[email protected]> Link: https://lore.kernel.org/[email protected] Signed-off-by: Linus Walleij <[email protected]>
1 parent 762ef7d commit a5fd6b6

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

drivers/pinctrl/meson/pinctrl-amlogic-a4.c

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -596,20 +596,6 @@ static int aml_get_group_pins(struct pinctrl_dev *pctldev,
596596
return 0;
597597
}
598598

599-
static inline const struct aml_pctl_group *
600-
aml_pctl_find_group_by_name(const struct aml_pinctrl *info,
601-
const char *name)
602-
{
603-
int i;
604-
605-
for (i = 0; i < info->ngroups; i++) {
606-
if (!strcmp(info->groups[i].name, name))
607-
return &info->groups[i];
608-
}
609-
610-
return NULL;
611-
}
612-
613599
static void aml_pin_dbg_show(struct pinctrl_dev *pcdev, struct seq_file *s,
614600
unsigned int offset)
615601
{

0 commit comments

Comments
 (0)