]> asedeno.scripts.mit.edu Git - linux.git/commit
hwmon: (nct6775) Only display fan speed tolerance conditionally
authorGuenter Roeck <linux@roeck-us.net>
Mon, 17 Sep 2018 16:24:11 +0000 (09:24 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Thu, 11 Oct 2018 03:37:13 +0000 (20:37 -0700)
commit61b6c66a8f740b5025ac49ddf1c2e29091a1274e
treebc8976a2f6f31f4961eed8be9ea49d78a6246741
parent0665a1d6231207c363dd6068611121e76346f99f
hwmon: (nct6775) Only display fan speed tolerance conditionally

A fan speed tolerance only makes sense if a fan target speed has been
configured in the first place. Otherwise we get odd output such as

fan1_target:0
fan1_tolerance:337500

Only display values other than 0 if a fan target speed has been configured.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/nct6775.c