]> asedeno.scripts.mit.edu Git - linux.git/commit
hwmon: (gpio-fan) allow to use alarm support alone from DT
authorSimon Guinot <simon.guinot@sequanux.org>
Wed, 25 Feb 2015 17:58:19 +0000 (18:58 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 9 Mar 2015 16:59:36 +0000 (09:59 -0700)
commit73ef85f42da2df8b567fea109c67ed53db937bcc
tree0b72ae38e8aeb5d432827e753b690438bae1244d
parent6552f327cab8eb6c773ba4f702cf6a371d1dc467
hwmon: (gpio-fan) allow to use alarm support alone from DT

On some boards, such as the LaCie 2Big Network v2 or 2Big NAS (based on
Marvell Kirkwood SoCs), an I2C fan controller is used but the alarm
signal is wired to a separate GPIO. Unfortunately, the gpio-fan driver
can't be used to handle GPIO alarm alone from DT: an error is returned
if the "gpios" DT property is missing.

This patch allows to use the gpio-fan driver even if the "alarm-gpios"
DT property is defined alone.

Signed-off-by: Simon Guinot <simon.guinot@sequanux.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Documentation/devicetree/bindings/gpio/gpio-fan.txt
drivers/hwmon/gpio-fan.c