]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (ina3221) return prober error code
authorMarcus Folkesson <marcus.folkesson@gmail.com>
Fri, 10 Mar 2023 07:50:35 +0000 (08:50 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Mar 2023 12:33:52 +0000 (13:33 +0100)
commit7f377870c6a77d3e9a2b861b92185bcd9f3f60af
treee42274791bf93bf02251c3ff7cf6a9ed282e288f
parentc53e796605304158314b1dd9000df0116a501c8f
hwmon: (ina3221) return prober error code

[ Upstream commit 34e6a7f5748ee2704dde23a2c5309ac5755815dd ]

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

Fixes: 332c1e488b8f ("hwmon: (ina3221) Read channel input source info from DT")
Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Link: https://lore.kernel.org/r/20230310075035.246083-1-marcus.folkesson@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hwmon/ina3221.c