dect
/
linux-2.6
Archived
13
0
Fork 0

Input: gpio_keys_polled - fix dt pdata->nbuttons

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>
This commit is contained in:
Alexandre Pereira da Silva 2012-09-12 21:49:26 -07:00 committed by Dmitry Torokhov
parent caaa357dc0
commit 8757145af0
1 changed files with 1 additions and 0 deletions

View File

@ -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);