Skip to content

Commit

Permalink
extcon: arizona: Switch to use device_property_count_u32()
Browse files Browse the repository at this point in the history
Use use device_property_count_u32() directly, that makes code neater.

Signed-off-by: Andy Shevchenko <[email protected]>
Acked-by: Charles Keepax <[email protected]>
Signed-off-by: Chanwoo Choi <[email protected]>
  • Loading branch information
andy-shev authored and chanwoochoi committed Jul 24, 2019
1 parent 5f9e832 commit a104dbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/extcon/extcon-arizona.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit a104dbc

Please sign in to comment.