mirror of
https://github.com/torvalds/linux.git
synced 2026-12-02 19:42:26 +00:00
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 <[email protected]>
Closes: https://lore.kernel.org/linux-input/[email protected]/
Fixes: a88927b534 ("firmware: add Exynos ACPM protocol driver")
Cc: [email protected]
Signed-off-by: Tudor Ambarus <[email protected]>
Signed-off-by: Krzysztof Kozlowski <[email protected]>