]> 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)
commitff303fb5019581aaa4f4b349b5dd384697a23d56
tree3e3c5bce26ad87c1521c7898d919927bd8b05b9f
parentd755fb20d5c2b283cd06dd7a9691b2abb2b47944
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