]> git.baikalelectronics.ru Git - kernel.git/commit
Input: gpio_keys - add support for device-tree platform data
authorDavid Jander <david@protonic.nl>
Sat, 9 Jul 2011 19:41:46 +0000 (12:41 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 10 Jul 2011 23:08:28 +0000 (16:08 -0700)
commit02cf7e1a71a78486dd780290cf908f8865f06116
tree875b9b1bb3c055e955fec0d7342939e5965cc16c
parent45f3a1ace48e7abfda2ac72bde9f78e1b0f8abf2
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: David Jander <david@protonic.nl>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Documentation/devicetree/bindings/gpio/gpio_keys.txt [new file with mode: 0644]
drivers/input/keyboard/gpio_keys.c