Skip to content

Commit a48150d

Browse files
krzklinusw
authored andcommitted
pinctrl: amdisp: Make amdisp_pinctrl_ops variable static
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>
1 parent 7a648d5 commit a48150d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/pinctrl/pinctrl-amdisp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ static int amdisp_get_group_pins(struct pinctrl_dev *pctldev,
8080
return 0;
8181
}
8282

83-
const struct pinctrl_ops amdisp_pinctrl_ops = {
83+
static const struct pinctrl_ops amdisp_pinctrl_ops = {
8484
.get_groups_count = amdisp_get_groups_count,
8585
.get_group_name = amdisp_get_group_name,
8686
.get_group_pins = amdisp_get_group_pins,

0 commit comments

Comments
 (0)