summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2015-08-21 20:54:53 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2015-08-21 20:54:53 +0300
commit7e08117de6ee17ae6c8f2983999a98cb95eb9bc2 (patch)
tree077d02824bdb535ab63197bd78cf724b16bf434b /drivers
parentdc9c12f46fcf01d42756a73c681f18a99e7223b6 (diff)
parent1ae5ddb6f8837558928a1a694c7b8af7f09fdd21 (diff)
downloadlinux-7e08117de6ee17ae6c8f2983999a98cb95eb9bc2.tar.xz
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
Pull input layer fix from Dmitry Torokhov: "A small fixup to gpio_keys_polled driver" * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: Input: gpio_keys_polled - request GPIO pin as input.
Diffstat (limited to 'drivers')
-rw-r--r--drivers/input/keyboard/gpio_keys_polled.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/keyboard/gpio_keys_polled.c b/drivers/input/keyboard/gpio_keys_polled.c
index 097d7216d98e..c6dc644aa580 100644
--- a/drivers/input/keyboard/gpio_keys_polled.c
+++ b/drivers/input/keyboard/gpio_keys_polled.c
@@ -246,7 +246,7 @@ static int gpio_keys_polled_probe(struct platform_device *pdev)
* convert it to descriptor.
*/
if (!button->gpiod && gpio_is_valid(button->gpio)) {
- unsigned flags = 0;
+ unsigned flags = GPIOF_IN;
if (button->active_low)
flags |= GPIOF_ACTIVE_LOW;