mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 21:57:43 +00: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
1 changed files with 1 additions and 1 deletions
|
@ -1253,7 +1253,7 @@ static int arizona_extcon_get_micd_configs(struct device *dev,
|
||||||
int i, j;
|
int i, j;
|
||||||
u32 *vals;
|
u32 *vals;
|
||||||
|
|
||||||
nconfs = device_property_read_u32_array(arizona->dev, prop, NULL, 0);
|
nconfs = device_property_count_u32(arizona->dev, prop);
|
||||||
if (nconfs <= 0)
|
if (nconfs <= 0)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue