summaryrefslogtreecommitdiffstats
path: root/drivers/input
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2019-08-12 09:00:55 +0200
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2019-08-12 09:03:13 +0200
commit656d29ce0f44163dbb12ff30b5a1a50644040500 (patch)
treeb153b92b3369dc7902b08a7a1e66a88a600f5a92 /drivers/input
parentInput: atmel_mxt_ts - switch to use device_property_count_u32() (diff)
downloadlinux-656d29ce0f44163dbb12ff30b5a1a50644040500.tar.xz
linux-656d29ce0f44163dbb12ff30b5a1a50644040500.zip
Input: matrix-keymap - switch to use device_property_count_u32()
Use use device_property_count_u32() directly, that makes code neater. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/matrix-keymap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/matrix-keymap.c b/drivers/input/matrix-keymap.c
index da312be94c3a..4fa53423f56c 100644
--- a/drivers/input/matrix-keymap.c
+++ b/drivers/input/matrix-keymap.c
@@ -81,7 +81,7 @@ static int matrix_keypad_parse_keymap(const char *propname,
if (!propname)
propname = "linux,keymap";
- size = device_property_read_u32_array(dev, propname, NULL, 0);
+ size = device_property_count_u32(dev, propname);
if (size <= 0) {
dev_err(dev, "missing or malformed property %s: %d\n",
propname, size);