Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Input: hideep - 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>

authored by

Andy Shevchenko and committed by
Dmitry Torokhov
104c995f 6e57ce76

+1 -2
+1 -2
drivers/input/touchscreen/hideep.c
··· 811 811 if (error) 812 812 return error; 813 813 814 - ts->key_num = device_property_read_u32_array(dev, "linux,keycodes", 815 - NULL, 0); 814 + ts->key_num = device_property_count_u32(dev, "linux,keycodes"); 816 815 if (ts->key_num > HIDEEP_KEY_MAX) { 817 816 dev_err(dev, "too many keys defined: %d\n", 818 817 ts->key_num);