]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commitdiff
pinctrl: amdisp: Make amdisp_pinctrl_ops variable static
authorKrzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Mon, 16 Feb 2026 08:58:39 +0000 (09:58 +0100)
committerLinus Walleij <linusw@kernel.org>
Tue, 24 Feb 2026 09:51:29 +0000 (10:51 +0100)
File-scope 'amdisp_pinctrl_ops' is not used outside of this unit, so
make it static to silence sparse warning:

  pinctrl-amdisp.c:83:26: warning: symbol 'amdisp_pinctrl_ops' was not declared. Should it be static?

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Signed-off-by: Linus Walleij <linusw@kernel.org>
drivers/pinctrl/pinctrl-amdisp.c

index efbf40c776ea8ad03a98560889375141c0ae8ae3..e0874cc086a720cf39cea1508029c6adaf08db4a 100644 (file)
@@ -80,7 +80,7 @@ static int amdisp_get_group_pins(struct pinctrl_dev *pctldev,
        return 0;
 }
 
-const struct pinctrl_ops amdisp_pinctrl_ops = {
+static const struct pinctrl_ops amdisp_pinctrl_ops = {
        .get_groups_count       = amdisp_get_groups_count,
        .get_group_name         = amdisp_get_group_name,
        .get_group_pins         = amdisp_get_group_pins,