hwmon: (dell-smm) Return -ENOIOCTLCMD instead of -EINVAL
authorArmin Wolf <W_Armin@gmx.de>
Thu, 21 Oct 2021 19:05:29 +0000 (21:05 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Thu, 21 Oct 2021 20:14:27 +0000 (13:14 -0700)
commite64325e8c56e73bf6e143d0a621be9a0b9bcf21a
treef432064dc35d2cd572aafe893e734d75147408e4
parent38c5b0dd7d3092c24fc3dbd9ca963fd0e11752f5
hwmon: (dell-smm) Return -ENOIOCTLCMD instead of -EINVAL

Returning -ENOIOCTLCMD gives the callers a better
hint of what went wrong and is the recommended
behavior.

Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Acked-by: Pali Rohár <pali@kernel.org>
Link: https://lore.kernel.org/r/20211021190531.17379-4-W_Armin@gmx.de
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/dell-smm-hwmon.c