summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/stmpe.c
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2012-11-14 08:55:21 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2012-11-24 00:21:49 -0800
commit6ea32387a0c7fb9ca0213fd22b47c5a1ca4c2972 (patch)
treecdae4cc6b20eb6190493e4cddd602ecab3e11cf0 /drivers/mfd/stmpe.c
parente2619cf78e19476bfd7ceaefa9eff0847529346e (diff)
downloadop-kernel-dev-6ea32387a0c7fb9ca0213fd22b47c5a1ca4c2972.zip
op-kernel-dev-6ea32387a0c7fb9ca0213fd22b47c5a1ca4c2972.tar.gz
Input: stmpe-keypad - add support for Device Tree bindings
This patch allows the STMPE driver to be successfully probed and initialised when Device Tree support is enabled. Besides the usual platform data changes, we also separate the process of filling in the 'in use' pin bitmap, as we have to extract the information from Device Tree in the DT boot case. Acked-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/mfd/stmpe.c')
-rw-r--r--drivers/mfd/stmpe.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mfd/stmpe.c b/drivers/mfd/stmpe.c
index 55c7b95..bf1ba93 100644
--- a/drivers/mfd/stmpe.c
+++ b/drivers/mfd/stmpe.c
@@ -324,6 +324,7 @@ static struct resource stmpe_keypad_resources[] = {
static struct mfd_cell stmpe_keypad_cell = {
.name = "stmpe-keypad",
+ .of_compatible = "st,stmpe-keypad",
.resources = stmpe_keypad_resources,
.num_resources = ARRAY_SIZE(stmpe_keypad_resources),
};
OpenPOWER on IntegriCloud