Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);