Input: rotary-encoder - use gpio_request_one()
authorDaniel Mack <zonque@gmail.com>
Wed, 1 Aug 2012 05:08:48 +0000 (22:08 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 22 Aug 2012 05:29:51 +0000 (22:29 -0700)
commit429a34d7477bb7071d37dd98b89f000ee6f0193b
tree3178b606302ce8781d4309c23782b932cd260893
parenta78769b80d73468d53d0ad70c5a9e3fd9ff9dc54
Input: rotary-encoder - use gpio_request_one()

Use gpio_request_one() instead of separate calls to gpio_request() and
gpio_direction_input() to simplify the code.

Signed-off-by: Daniel Mack <zonque@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/rotary_encoder.c