Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c52ae3d2 authored by Guenter Roeck's avatar Guenter Roeck
Browse files

hwmon: (gpio_fan) Use error value returned from get_fan_speed_index()



get_fan_speed_index() returns -EINVAL in case of errors, only to have it
ignored and replaced with -ENODEV. Make it return -ENODEV and use it.

Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent bb34c0da
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment