pinctrl: mediatek: make symbol 'mtk_drive' static
Subsystems (5)
PATCH 1/1 pinctrl: mediatek: make symbol 'mtk_drive' static
Fixes the following sparse warning:
drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c:37:29: warning:
symbol 'mtk_drive' was not declared. Should it be static?
Signed-off-by Wei Yongjun <[email protected]>
--- drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c +1 -1
@@ -34,7 +34,7 @@ struct mtk_drive_desc { };/* The groups of drive strength */ -const struct mtk_drive_desc mtk_drive[] = { +static const struct mtk_drive_desc mtk_drive[] = { [DRV_GRP0 ] = {4 ,16 ,4 ,1 }, [DRV_GRP1 ] = {4 ,16 ,4 ,2 }, [DRV_GRP2 ] = {2 ,8 ,2 ,1 },
PATCH 1/1 pinctrl: mediatek: make symbol 'mtk_drive' static
Quoted 6 lines · Wei Yongjun
Fixes the following sparse warning:
drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c:37:29: warning:
symbol 'mtk_drive' was not declared. Should it be static?Signed-off-by Wei Yongjun <[email protected]>
Acked-by Sean Wang <[email protected]>
Quoted 18 lines
--- drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c +1
-1@@ -34,7 +34,7 @@ struct mtk_drive_desc { };/* The groups of drive strength */ -const struct mtk_drive_desc mtk_drive[] = { +static const struct mtk_drive_desc mtk_drive[] = { [DRV_GRP0 ] = {4 ,16 ,4 ,1 }, [DRV_GRP1 ] = {4 ,16 ,4 ,2 }, [DRV_GRP2 ] = {2 ,8 ,2 ,1 },
Quoted 6 lines · Wei Yongjun
Fixes the following sparse warning:
drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c:37:29: warning:
symbol 'mtk_drive' was not declared. Should it be static?Signed-off-by Wei Yongjun <[email protected]>
Patch applied with Sean's ACK.
Yours,
Linus Walleij