input: misc: ixp4-beeper: use gpiolib strictly
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 10 Sep 2013 11:06:57 +0000 (13:06 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 27 Sep 2013 12:15:20 +0000 (14:15 +0200)
commitb22973d0ecfcf499179870599b0f6e0712ff0a14
tree3e3c5bce26ad87c1521c7898d919927bd8b05b9f
parente9c9fc2315ad7a57af1a5124ad911870b60d9bd0
input: misc: ixp4-beeper: use gpiolib strictly

Request and free the GPIO line used for the beeper properly.
Then use the gpiolib API to flip the output of the GPIO pin
instead of relying on hacks to poke the register bits.

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