mirror of
https://github.com/torvalds/linux.git
synced 2024-12-05 18:41:23 +00:00
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 <andriy.shevchenko@linux.intel.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
This commit is contained in:
parent
8484aa0cb3
commit
a6e5e6794a
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user