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

Skip to content
Commit fd05d089 authored by David Jander's avatar David Jander Committed by Dmitry Torokhov
Browse files

Input: gpio_keys - add support for device-tree platform data



This patch enables fetching configuration data, which is normally provided
via platform_data, from the device-tree instead.

If the device is configured from device-tree data, the platform_data struct
is not used, and button data needs to be allocated dynamically. Big part of
this patch deals with confining pdata usage to the probe function, to make
this possible.

Signed-off-by: default avatarDavid Jander <david@protonic.nl>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent eadba0c9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment