]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: mediatek: paris: Drop extra newline in mtk_pctrl_show_one_pin()
authorChen-Yu Tsai <wenst@chromium.org>
Tue, 8 Mar 2022 10:09:50 +0000 (18:09 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 15 Mar 2022 00:24:15 +0000 (01:24 +0100)
commit85194a31804feda68de9a96df523475881fed2f5
treec32aee471c8a78c646739a826e0ca2d854169144
parent2e1f4f0661fdbf96393fc6ff600c9cbc6b123f2e
pinctrl: mediatek: paris: Drop extra newline in mtk_pctrl_show_one_pin()

The caller of mtk_pctrl_show_one_pin() is responsible for printing the
full line. mtk_pctrl_show_one_pin(), called through mtk_pctrl_dbg_show(),
should only produce a string containing the extra information the driver
wants included.

Drop the extra newlines. Also unbreak the line that is only slightly
over 80 characters to make it easier on the eye, and get rid of the
braces now that each block in the conditionals is just one line.

Fixes: cae1cf0821f5 ("pinctrl: mediatek: Add support for pin configuration dump via debugfs.")
Fixes: cd1347e64652 ("pinctrl: mediatek: support rsel feature")
Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20220308100956.2750295-6-wenst@chromium.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/mediatek/pinctrl-paris.c