[PATCH] hwmon: npcm750-pwm: add an error code check in npcm7xx_en_pwm_fan

Guenter Roeck linux at roeck-us.net
Thu Oct 26 06:36:51 AEDT 2023


On Fri, Oct 20, 2023 at 04:55:19PM +0800, Su Hui wrote:
> npcm7xx_pwm_config_set() can return '-ENODEV' for failed. So check
> the value of 'ret' after calling npcm7xx_pwm_config_set().
> 
> Signed-off-by: Su Hui <suhui at nfschina.com>

Applied.

Thanks,
Guenter


More information about the openbmc mailing list