]> git.baikalelectronics.ru Git - kernel.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)
commit6d120a30d3339603942437226dfffe8cf5a5b21a
tree0b72ae38e8aeb5d432827e753b690438bae1244d
parent72f1238df6c3253c2f2650bf80887ccb18637e2f
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