Skip to content
Commit 9cc4aa40 authored by Marcus Folkesson's avatar Marcus Folkesson Committed by Greg Kroah-Hartman
Browse files

hwmon: (ina3221) return prober error code

[ 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>
parent 7091951c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment