mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-18 02:04:05 +08:00
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>
This commit is contained in:
parent
5f9e832c13
commit
a104dbc527
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user