]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
power: supply: wm831x: Check wm831x_set_bits() return value
authorIvan Abramov <i.abramov@mt-integration.ru>
Thu, 9 Oct 2025 17:05:52 +0000 (20:05 +0300)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Mon, 3 Nov 2025 00:01:57 +0000 (01:01 +0100)
commitea14bae6df18942bccb467fcf5ff33ca677b8253
treee5b171e4af5d17c5ac044eab00ad9f72eef2811c
parent15aca30cc6c69806054b896a2ccf7577239cb878
power: supply: wm831x: Check wm831x_set_bits() return value

Since wm831x_set_bits() may return error, log failure and exit from
wm831x_usb_limit_change() in such case.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: 626b6cd5f52e ("power: wm831x_power: Support USB charger current limit management")
Signed-off-by: Ivan Abramov <i.abramov@mt-integration.ru>
Link: https://patch.msgid.link/20251009170553.566561-1-i.abramov@mt-integration.ru
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/wm831x_power.c