hwmon: (gpio-fan) Add a shutdown handler to poweroff the fans
authorNishanth Menon <nm@ti.com>
Thu, 4 Dec 2014 16:58:56 +0000 (10:58 -0600)
committerGuenter Roeck <linux@roeck-us.net>
Thu, 4 Dec 2014 19:04:14 +0000 (11:04 -0800)
commitb95579cd8795442e75c8846fa6eeb4fb442e9d83
treedc421532956f1f10aa421de25956e0f606d9f154
parent52a95c1185220feb514c8e167bd6033c0da6f576
hwmon: (gpio-fan) Add a shutdown handler to poweroff the fans

Poweroff the fans when shutting down the system. Else,
echo '1' > /sys/class/hwmon/hwmon0/fan1_target; poweroff leaves the
fan running if the System power off does not drive the gpio expander
which might control the fan power supply.

Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/gpio-fan.c