Input: gpio_keys - clean up device tree parser
authorAlexandre Pereira da Silva <aletes.xgr@gmail.com>
Mon, 30 Jul 2012 05:18:47 +0000 (22:18 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 22 Aug 2012 05:28:26 +0000 (22:28 -0700)
commit219edc71784ff8a3537ffbe64baded61ce4048b9
treea0ced5c45e239201e8f4af99eaab0156606f8bd3
parentc0394506e69b37c47d391c2a7bbea3ea236d8ec8
Input: gpio_keys - clean up device tree parser

- fix sizeof in memset;
- clean up dt properties extraction;
- use for_each_chil_of_node macro;
- use of_get_child_count();
- use of_match_ptr macro.

Signed-off-by: Alexandre Pereira da Silva <aletes.xgr@gmail.com>
Acked-by: Rob Herring <rob.herring@calxeda.com>
[Fabio Estevam <fabio.estevam@freescale.com>: fix fix NULL pointer
dereference for dt case - pdata->buttons wasn't initialized]
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/keyboard/gpio_keys.c