Input: gpio_keys - use of_property_read_u32()
authorTobias Klauser <tklauser@distanz.ch>
Fri, 9 Sep 2011 18:09:50 +0000 (11:09 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 21 Sep 2011 05:46:32 +0000 (22:46 -0700)
commitcca84699a079a91b0a0cb4f2da8548e56859376a
treecbce1c7311de1f9a739e489101ab19a4555f3d09
parentc3a01ba9e45f01c6505a41efb33c420a0c959eb3
Input: gpio_keys - use of_property_read_u32()

Use the of_property_read_u32() helper function to retrieve u32 values
from the device tree. Also do not pass the len parameter to
of_get_property if it isn't checked afterwards.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/keyboard/gpio_keys.c