hwmon: add generic GPIO fan driver
commitd6fe1360f42e86262153927986dea6502daff703
authorSimon Guinot <sguinot@lacie.com>
Thu, 21 Oct 2010 22:44:19 +0000 (22 00:44 +0200)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Mon, 25 Oct 2010 21:11:37 +0000 (25 14:11 -0700)
treeadaf8f6da75353dacc4d1d05ff4a042d6c9c0b11
parent3247800676c4a04352cde72b9935b57ffc72ce15
hwmon: add generic GPIO fan driver

This patch adds hwmon support for fans connected to GPIO lines.

Platform specific information such as GPIO pinout and speed conversion array
(rpm from/to GPIO value) are passed to the driver via platform_data.

Signed-off-by: Simon Guinot <sguinot@lacie.com>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
drivers/hwmon/Kconfig
drivers/hwmon/Makefile
drivers/hwmon/gpio-fan.c [new file with mode: 0644]
include/linux/gpio-fan.h [new file with mode: 0644]