diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2019-07-23 22:17:04 +0300 |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2019-08-09 08:28:29 +0300 |
commit | a6e5e6794a538534e797f422e6f31888ff5b6b64 (patch) | |
tree | ea2590eed410c79c3340ab83cdbfcde096c67c21 /drivers/usb/dwc3 | |
parent | 8484aa0cb36d8fd751db77e46763719c78a03b22 (diff) | |
download | talos-op-linux-a6e5e6794a538534e797f422e6f31888ff5b6b64.tar.gz talos-op-linux-a6e5e6794a538534e797f422e6f31888ff5b6b64.zip |
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>
Diffstat (limited to 'drivers/usb/dwc3')
-rw-r--r-- | drivers/usb/dwc3/core.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index c9bb93a2c81e..98bce85c29d0 100644 --- a/drivers/usb/dwc3/core.c +++ b/drivers/usb/dwc3/core.c @@ -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; |