]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
firmware: exynos-acpm: fix PMIC returned errno
authorTudor Ambarus <tudor.ambarus@linaro.org>
Mon, 8 Sep 2025 14:02:00 +0000 (14:02 +0000)
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Thu, 11 Sep 2025 09:27:05 +0000 (11:27 +0200)
commit1da4cbefed4a2e69ebad81fc9b356cd9b807f380
treedba02010aedb299bb48bcab3d903ae409867da92
parent187a3426a664737381a70a3fca3b8108f2300de9
firmware: exynos-acpm: fix PMIC returned errno

ACPM PMIC command handlers returned a u8 value when they should
have returned either zero or negative error codes.
Translate the APM PMIC errno to linux errno.

Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/linux-input/aElHlTApXj-W_o1r@stanley.mountain/
Fixes: a88927b534ba ("firmware: add Exynos ACPM protocol driver")
Cc: stable@vger.kernel.org
Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
drivers/firmware/samsung/exynos-acpm-pmic.c