hwmon: (max6650) Allow fan shutdown and initial rpm target
authorMike Looijmans <mike.looijmans@topic.nl>
Wed, 24 Aug 2016 08:13:26 +0000 (10:13 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 9 Sep 2016 04:34:17 +0000 (21:34 -0700)
commit20005cc58da50035c9b64572d4091c184dfa24c0
treeae69f66cecd7eadf155e10db8091e636d7bf80e9
parenta6cdeefeca47b834109bb13941c699be92c4ff97
hwmon: (max6650) Allow fan shutdown and initial rpm target

The fan can be stopped by writing "3" to pwm1_enable in sysfs.

Add devicetree property for early initialization of the fan controller
to prevent overheating, for example when resetting the board while the
fan was completely turned off.

Also improve error reporting, I2C failures were ignored while writing
new values.

Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Documentation/hwmon/max6650
drivers/hwmon/max6650.c