Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment