From: Andy Shevchenko Date: Tue, 23 Jul 2019 17:40:21 +0000 (+0300) Subject: extcon: arizona: Switch to use device_property_count_u32() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=a104dbc527551bda0d97db493a2d3d31e3076d4f;p=linux.git 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 Acked-by: Charles Keepax Signed-off-by: Chanwoo Choi --- diff --git a/drivers/extcon/extcon-arizona.c b/drivers/extcon/extcon-arizona.c index 7e9f4c9ee87d8..e970134c95fab 100644 --- a/drivers/extcon/extcon-arizona.c +++ b/drivers/extcon/extcon-arizona.c @@ -1253,7 +1253,7 @@ static int arizona_extcon_get_micd_configs(struct device *dev, int i, j; u32 *vals; - nconfs = device_property_read_u32_array(arizona->dev, prop, NULL, 0); + nconfs = device_property_count_u32(arizona->dev, prop); if (nconfs <= 0) return 0;