Thread (2 messages) 2 messages, 2 authors, 2025-12-03

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

From: Linus Walleij <linusw@kernel.org>
Date: 2025-12-03 23:20:26
Also in: linux-gpio, linux-omap, lkml

On Wed, Dec 3, 2025 at 7:14 AM Haotian Zhang [off-list ref] 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 <redacted>
Patch applied.
Thanks Haotian!

Yours,
Linus Walleij
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help