input: misc: ixp4-beeper: switch to use gpiolib
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 10 Sep 2013 10:53:03 +0000 (12:53 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 27 Sep 2013 12:15:14 +0000 (14:15 +0200)
commite9c9fc2315ad7a57af1a5124ad911870b60d9bd0
treedb8d7fa11a76186b4a978cefe437d7b4bc6d447f
parent8040dd09c2ca7e70daf84f040beb3ced9602fce5
input: misc: ixp4-beeper: switch to use gpiolib

The platform using this beeper has support for gpiolib, so there
is no point to use the custom gpio_line* API. A strange ambiguity
where a line was first set as input and then driven high was
solved by first driving the line high as output and then switch
it to input.

Cc: Imre Kaloz <kaloz@openwrt.org>
Cc: Alexandre Courbot <acourbot@nvidia.com>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Krzysztof Halasa <khc@pm.waw.pl>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/input/misc/ixp4xx-beeper.c