usb: dwc3: Switch to use device_property_count_u32()
Subsystems (2)
PATCH 1/1 usb: dwc3: Switch to use device_property_count_u32()
Use use device_property_count_u32() directly, that makes code neater.
Signed-off-by Andy Shevchenko <[email protected]>
--- drivers/usb/dwc3/core.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/usb/dwc3/core.c +1 -2
@@ -813,8 +813,7 @@ static void dwc3_set_incr_burst_type(struct dwc3 *dwc)* result = 1, means INCRx burst mode supported. * result > 1, means undefined length burst mode supported. */ - ntype =device_property_read_u32_array (dev, -"snps,incr-burst-type-adjustment" ,NULL ,0 ); + ntype =device_property_count_u32 (dev,"snps,incr-burst-type-adjustment" );if (ntype <=0 )return ;
Signature · 1 line
2.20.1