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

extcon: arizona: 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>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>

authored by

Andy Shevchenko and committed by
Chanwoo Choi
a104dbc5 5f9e832c

+1 -1
+1 -1
drivers/extcon/extcon-arizona.c
··· 1253 1253 int i, j; 1254 1254 u32 *vals; 1255 1255 1256 - nconfs = device_property_read_u32_array(arizona->dev, prop, NULL, 0); 1256 + nconfs = device_property_count_u32(arizona->dev, prop); 1257 1257 if (nconfs <= 0) 1258 1258 return 0; 1259 1259