Re: [PATCH net v2] net: phy: qcom: qca807x: normalize return value of gpio_get

From
Linus Walleij <linusw@kernel.org>
Date
2026-02-19 18:25:58
Also in
linux-arm-msm, linux-gpio, lkml
Reply to
Dmitry Torokhov, 2026-02-19
On Thu, Feb 19, 2026 at 1:56 AM Dmitry Torokhov
[off-list ref] wrote:
The GPIO get callback is expected to return 0 or 1 (or a negative error
code). Ensure that the value returned by qca807x_gpio_get() is
normalized to the [0, 1] range.

Fixes: 86ef402d805d ("gpiolib: sanitize the return value of gpio_chip::get()")
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Reviewed-by: Linus Walleij <linusw@kernel.org>

Yours,
Linus Walleij
Thread (4 messages) 4 messages, 4 authors, last reply 2026-02-21
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help