hwmon: (gpio-fan) Convert to use GPIO descriptors
authorLinus Walleij <linus.walleij@linaro.org>
Sun, 8 Oct 2017 23:14:32 +0000 (01:14 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 30 Oct 2017 01:36:03 +0000 (18:36 -0700)
commit9de382fddf18f673436f1058d822e1236a0b4c2a
treee44dc6b1313e9a0ffdb00820682edff03df3585c
parente99c2e5d6cde7f06dac0444b5edd6ed0d1abc431
hwmon: (gpio-fan) Convert to use GPIO descriptors

This converts the GPIO fan driver to use GPIO descriptors. This way
we avoid indirection since the gpiolib anyway just use descriptors
inside, and we also get rid of explicit polarity handling: the
descriptors internally knows if the line is active high or active
low.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
[groeck: Line length]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/gpio-fan.c