]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
firmware: exynos-acpm: Use unsigned int for acpm_pmic_linux_errmap index
authorKrzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Thu, 19 Feb 2026 11:27:10 +0000 (12:27 +0100)
committerKrzysztof Kozlowski <krzk@kernel.org>
Tue, 24 Feb 2026 11:06:29 +0000 (12:06 +0100)
commit910e91a6496f7e0af80e945a6b850b589b90669e
tree00bc94e07b278795c89174805438e16c4ebbfc94
parent6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f
firmware: exynos-acpm: Use unsigned int for acpm_pmic_linux_errmap index

acpm_pmic_to_linux_err() uses an unsigned integer obtained from messages
as index of array to map them to error codes.  Array index cannot be
negative, so make that explicit.

Reviewed-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Link: https://patch.msgid.link/20260219-firmare-acpm-counted-v2-1-e1f7389237d3@oss.qualcomm.com
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
drivers/firmware/samsung/exynos-acpm-pmic.c