]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4c2fa0a4c226f620866ec3afa80bc4664527d940
tree3e3c5bce26ad87c1521c7898d919927bd8b05b9f
parent3ecce24060dd1bf3e96ab00c1e6bdc78a09b25eb
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