Commit 656d29ce authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Dmitry Torokhov

Input: matrix-keymap - switch to use device_property_count_u32()

Use use device_property_count_u32() directly, that makes code neater.
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 9ed05c94
...@@ -81,7 +81,7 @@ static int matrix_keypad_parse_keymap(const char *propname, ...@@ -81,7 +81,7 @@ static int matrix_keypad_parse_keymap(const char *propname,
if (!propname) if (!propname)
propname = "linux,keymap"; propname = "linux,keymap";
size = device_property_read_u32_array(dev, propname, NULL, 0); size = device_property_count_u32(dev, propname);
if (size <= 0) { if (size <= 0) {
dev_err(dev, "missing or malformed property %s: %d\n", dev_err(dev, "missing or malformed property %s: %d\n",
propname, size); propname, size);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment