]> 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)
commitc70a14c4a6c7c906bc0107ecf47a2b1e14bd3b85
tree875b9b1bb3c055e955fec0d7342939e5965cc16c
parentfa28a993b94c29ce5d93b4a054b177ec8c3f6d24
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