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)
commitfd05d08920b54d189aa247c5c5701a08e539ed0b
tree875b9b1bb3c055e955fec0d7342939e5965cc16c
parenteadba0c9c41bfa840b0f1e9ee369a869c2a322b3
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