Commit 25a74c0f authored by Zhiyong Tao's avatar Zhiyong Tao Committed by Linus Walleij

pinctrl: mediatek: fix coding style

Fix Camel spelling coding style to avoid checkpatch
warning in a following patch.
Signed-off-by: default avatarZhiyong Tao <zhiyong.tao@mediatek.com>
Reviewed-by: default avatarChen-Yu Tsai <wenst@chromium.org>
Link: https://lore.kernel.org/r/20210924080632.28410-4-zhiyong.tao@mediatek.comSigned-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 91e7edce
...@@ -577,7 +577,7 @@ static int mtk_hw_get_value_wrap(struct mtk_pinctrl *hw, unsigned int gpio, int ...@@ -577,7 +577,7 @@ static int mtk_hw_get_value_wrap(struct mtk_pinctrl *hw, unsigned int gpio, int
mtk_hw_get_value_wrap(hw, gpio, PINCTRL_PIN_REG_DRV) mtk_hw_get_value_wrap(hw, gpio, PINCTRL_PIN_REG_DRV)
ssize_t mtk_pctrl_show_one_pin(struct mtk_pinctrl *hw, ssize_t mtk_pctrl_show_one_pin(struct mtk_pinctrl *hw,
unsigned int gpio, char *buf, unsigned int bufLen) unsigned int gpio, char *buf, unsigned int buf_len)
{ {
int pinmux, pullup, pullen, len = 0, r1 = -1, r0 = -1; int pinmux, pullup, pullen, len = 0, r1 = -1, r0 = -1;
const struct mtk_pin_desc *desc; const struct mtk_pin_desc *desc;
...@@ -610,7 +610,7 @@ ssize_t mtk_pctrl_show_one_pin(struct mtk_pinctrl *hw, ...@@ -610,7 +610,7 @@ ssize_t mtk_pctrl_show_one_pin(struct mtk_pinctrl *hw,
} else if (pullen != MTK_DISABLE && pullen != MTK_ENABLE) { } else if (pullen != MTK_DISABLE && pullen != MTK_ENABLE) {
pullen = 0; pullen = 0;
} }
len += scnprintf(buf + len, bufLen - len, len += scnprintf(buf + len, buf_len - len,
"%03d: %1d%1d%1d%1d%02d%1d%1d%1d%1d", "%03d: %1d%1d%1d%1d%02d%1d%1d%1d%1d",
gpio, gpio,
pinmux, pinmux,
...@@ -624,10 +624,10 @@ ssize_t mtk_pctrl_show_one_pin(struct mtk_pinctrl *hw, ...@@ -624,10 +624,10 @@ ssize_t mtk_pctrl_show_one_pin(struct mtk_pinctrl *hw,
pullup); pullup);
if (r1 != -1) { if (r1 != -1) {
len += scnprintf(buf + len, bufLen - len, " (%1d %1d)\n", len += scnprintf(buf + len, buf_len - len, " (%1d %1d)\n",
r1, r0); r1, r0);
} else { } else {
len += scnprintf(buf + len, bufLen - len, "\n"); len += scnprintf(buf + len, buf_len - len, "\n");
} }
return len; return len;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment