Skip to content

Commit

Permalink
Input: gpio_keys_polled - fix dt pdata->nbuttons
Browse files Browse the repository at this point in the history
pdata->nbuttons should be updated by the dt code.

Signed-off-by: Alexandre Pereira da Silva <aletes.xgr@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
  • Loading branch information
Alexandre Pereira da Silva authored and Dmitry Torokhov committed Sep 13, 2012
1 parent caaa357 commit 8757145
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/input/keyboard/gpio_keys_polled.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ gpio_keys_polled_get_devtree_pdata(struct device *dev)
}

pdata->buttons = (struct gpio_keys_button *)(pdata + 1);
pdata->nbuttons = nbuttons;

pdata->rep = !!of_get_property(node, "autorepeat", NULL);
of_property_read_u32(node, "poll-interval", &pdata->poll_interval);
Expand Down

0 comments on commit 8757145

Please sign in to comment.