]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
power: supply: axp288_charger: Simplify returns of dev_err_probe()
authorKrzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Fri, 20 Feb 2026 17:49:40 +0000 (18:49 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Tue, 3 Mar 2026 22:58:08 +0000 (23:58 +0100)
commit727fe2e90ec6365771b3cd49dc0e263bc602d7c1
tree7a04ce9a702a8cf9418915ebb77e3d19a1f35129
parent658342fd75b582cbb06544d513171c3d645faead
power: supply: axp288_charger: Simplify returns of dev_err_probe()

One of benefits of dev_err_probe() is that it returns the error value
greatly simplifying the error paths (e.g. three lines -> one line).

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Reviewed-by: Hans de Goede <johannes.goede@oss.qualcomm.com>
Reviewed-by: Chen-Yu Tsai <wens@kernel.org>
Link: https://patch.msgid.link/20260220174938.672883-6-krzysztof.kozlowski@oss.qualcomm.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/axp288_charger.c