]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3c97026f296452029fe89cbd6b54899be51e5848
treedc421532956f1f10aa421de25956e0f606d9f154
parent150639676a8f7c92dbbfc07faddd2da1bf95d068
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