Commit e6f62378 authored by Marcus Folkesson's avatar Marcus Folkesson Committed by sanglipeng
Browse files

hwmon: (ina3221) return prober error code

stable inclusion
from stable-v5.10.176
commit 663c3afee81ea56952293b869c623e7dd20548ec
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8CHVQ

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=663c3afee81ea56952293b869c623e7dd20548ec



--------------------------------

[ Upstream commit c93f5e2a ]

ret is set to 0 which do not indicate an error.
Return -EINVAL instead.

Fixes: a9e9dd9c ("hwmon: (ina3221) Read channel input source info from DT")
Signed-off-by: default avatarMarcus Folkesson <marcus.folkesson@gmail.com>
Link: https://lore.kernel.org/r/20230310075035.246083-1-marcus.folkesson@gmail.com


Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 0ba70590
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment