]> www.infradead.org Git - users/dwmw2/linux.git/commit
pinctrl: mediatek: paris: Fix "argument" argument type for mtk_pinconf_get()
authorChen-Yu Tsai <wenst@chromium.org>
Tue, 8 Mar 2022 10:09:48 +0000 (18:09 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 12:40:27 +0000 (14:40 +0200)
commit7675fb2aaf8846a33e318322a382c12ae040df8e
treec4184c7e635efef0aeab09bf408d5ee845def404
parent901e192ac91e5cd4172bdf3e3ca0b4d778d98c2b
pinctrl: mediatek: paris: Fix "argument" argument type for mtk_pinconf_get()

[ Upstream commit 19bce7ce0a593c7024030a0cda9e23facea3c93d ]

For mtk_pinconf_get(), the "argument" argument is typically returned by
pinconf_to_config_argument(), which holds the value for a given pinconf
parameter. It certainly should not have the type of "enum pin_config_param",
which describes the type of the pinconf parameter itself.

Change the type to u32, which matches the return type of
pinconf_to_config_argument().

Fixes: 805250982bb5 ("pinctrl: mediatek: add pinctrl-paris that implements the vendor dt-bindings")
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-4-wenst@chromium.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pinctrl/mediatek/pinctrl-paris.c