Commit 8757145a authored by Alexandre Pereira da Silva's avatar Alexandre Pereira da Silva Committed by Dmitry Torokhov

Input: gpio_keys_polled - fix dt pdata->nbuttons

pdata->nbuttons should be updated by the dt code.
Signed-off-by: default avatarAlexandre Pereira da Silva <aletes.xgr@gmail.com>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent caaa357d
...@@ -129,6 +129,7 @@ gpio_keys_polled_get_devtree_pdata(struct device *dev) ...@@ -129,6 +129,7 @@ gpio_keys_polled_get_devtree_pdata(struct device *dev)
} }
pdata->buttons = (struct gpio_keys_button *)(pdata + 1); pdata->buttons = (struct gpio_keys_button *)(pdata + 1);
pdata->nbuttons = nbuttons;
pdata->rep = !!of_get_property(node, "autorepeat", NULL); pdata->rep = !!of_get_property(node, "autorepeat", NULL);
of_property_read_u32(node, "poll-interval", &pdata->poll_interval); of_property_read_u32(node, "poll-interval", &pdata->poll_interval);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment