[PATCH] pinctrl: single: Fix incorrect type for error return variable

Linus Walleij linusw at kernel.org
Wed Dec 3 15:20:14 PST 2025


On Wed, Dec 3, 2025 at 7:14 AM Haotian Zhang <vulab at iscas.ac.cn> wrote:

> pcs_pinconf_get() and pcs_pinconf_set() declare ret as unsigned int,
> but assign it the return values of pcs_get_function() that may return
> negative error codes. This causes negative error codes to be
> converted to large positive values.
>
> Change ret from unsigned int to int in both functions.
>
> Fixes: 9dddb4df90d1 ("pinctrl: single: support generic pinconf")
> Signed-off-by: Haotian Zhang <vulab at iscas.ac.cn>

Patch applied.
Thanks Haotian!

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list