usb: dwc2: Declare the core params struct statically
This makes it consistent with the hw_params struct and simplifies the memory management for future refactoring. Fix up usage in all files. Signed-off-by: John Youn <johnyoun@synopsys.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
This commit is contained in:
@@ -2557,7 +2557,7 @@ void dwc2_hsotg_core_init_disconnected(struct dwc2_hsotg *hsotg,
|
||||
GINTSTS_USBSUSP | GINTSTS_WKUPINT |
|
||||
GINTSTS_INCOMPL_SOIN | GINTSTS_INCOMPL_SOOUT;
|
||||
|
||||
if (hsotg->core_params->external_id_pin_ctl <= 0)
|
||||
if (hsotg->params.external_id_pin_ctl <= 0)
|
||||
intmsk |= GINTSTS_CONIDSTSCHNG;
|
||||
|
||||
dwc2_writel(intmsk, hsotg->regs + GINTMSK);
|
||||
|
Reference in New Issue
Block a user