diff options
| author | Haotian Zhang <vulab@iscas.ac.cn> | 2025-12-03 14:13:47 +0800 |
|---|---|---|
| committer | Linus Walleij <linusw@kernel.org> | 2025-12-04 00:19:37 +0100 |
| commit | 61d1bb53547d42c6bdaec9da4496beb3a1a05264 (patch) | |
| tree | 7aa45986243b998f698f8d976ff497e58b57a948 /rust/proc-macro2 | |
| parent | ac52b4a98509de3760919fa33e03384a5e770d7a (diff) | |
pinctrl: single: Fix incorrect type for error return variable
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@iscas.ac.cn>
Signed-off-by: Linus Walleij <linusw@kernel.org>
Diffstat (limited to 'rust/proc-macro2')
0 files changed, 0 insertions, 0 deletions
