提交 a6e5e679 编写于 作者: A Andy Shevchenko 提交者: Felipe Balbi

usb: dwc3: Switch to use device_property_count_u32()

Use use device_property_count_u32() directly, that makes code neater.
Signed-off-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: NFelipe Balbi <felipe.balbi@linux.intel.com>
上级 8484aa0c
...@@ -813,8 +813,7 @@ static void dwc3_set_incr_burst_type(struct dwc3 *dwc) ...@@ -813,8 +813,7 @@ static void dwc3_set_incr_burst_type(struct dwc3 *dwc)
* result = 1, means INCRx burst mode supported. * result = 1, means INCRx burst mode supported.
* result > 1, means undefined length burst mode supported. * result > 1, means undefined length burst mode supported.
*/ */
ntype = device_property_read_u32_array(dev, ntype = device_property_count_u32(dev, "snps,incr-burst-type-adjustment");
"snps,incr-burst-type-adjustment", NULL, 0);
if (ntype <= 0) if (ntype <= 0)
return; return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册