Skip to content
Commit b92b2984 authored by Su Hui's avatar Su Hui Committed by Guenter Roeck
Browse files

hwmon: (npcm750-pwm) Add an error code check in npcm7xx_en_pwm_fan



npcm7xx_pwm_config_set() can return '-ENODEV' for failed. So check
the value of 'ret' after calling npcm7xx_pwm_config_set().

Signed-off-by: default avatarSu Hui <suhui@nfschina.com>
Link: https://lore.kernel.org/r/20231020085518.198477-1-suhui@nfschina.com
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 748465a5
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