diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2018-09-20 06:21:42 +0000 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2018-09-21 09:02:37 -0700 |
commit | 07c6b037c2bae2a0f1978198f1486b3b2681261b (patch) | |
tree | bcd18ba3e1b2f98feab1cbd2b80af8479c31d690 | |
parent | 184744e9a0142f30d66ee369502c8f47d25a6928 (diff) | |
download | linux-stable-07c6b037c2bae2a0f1978198f1486b3b2681261b.tar.gz linux-stable-07c6b037c2bae2a0f1978198f1486b3b2681261b.tar.bz2 linux-stable-07c6b037c2bae2a0f1978198f1486b3b2681261b.zip |
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 <weiyongjun1@huawei.com>
Acked-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r-- | drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c b/drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c index 167ebf43c089..4a9e0d4c2bbc 100644 --- a/drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c +++ b/drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c @@ -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 }, |