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

Configure Feed

Select the types of activity you want to include in your feed.

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: 6e9be3abb78c ("pinctrl: Add driver support for Amlogic SoCs")
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Xianwei Zhao <xianwei.zhao@amlogic.com>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Link: https://lore.kernel.org/20250509150114.299962-2-krzysztof.kozlowski@linaro.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Krzysztof Kozlowski and committed by
Linus Walleij
a5fd6b67 762ef7d1

-14
-14
drivers/pinctrl/meson/pinctrl-amlogic-a4.c
··· 596 596 return 0; 597 597 } 598 598 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 - 613 599 static void aml_pin_dbg_show(struct pinctrl_dev *pcdev, struct seq_file *s, 614 600 unsigned int offset) 615 601 {