Browse Source

usb: s3c-otg: Rename struct s3c_usbotg_reg to dwc2_usbotg_reg

The driver is actually for the Designware DWC2 controller.
This patch renames struct s3c_usbotg_reg to struct dwc2_usbotg_reg
to make things more obvious and clear.

Signed-off-by: Marek Vasut <marex@denx.de>
Marek Vasut 9 năm trước cách đây
mục cha
commit
014728133a
2 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 2 2
      drivers/usb/gadget/s3c_udc_otg.c
  2. 1 1
      drivers/usb/gadget/s3c_udc_otg_regs.h

+ 2 - 2
drivers/usb/gadget/s3c_udc_otg.c

@@ -144,7 +144,7 @@ static struct usb_ep_ops s3c_ep_ops = {
 /***********************************************************/
 
 void __iomem		*regs_otg;
-struct s3c_usbotg_reg *reg;
+struct dwc2_usbotg_reg *reg;
 
 bool dfu_usb_get_reset(void)
 {
@@ -805,7 +805,7 @@ int s3c_udc_probe(struct s3c_plat_otg_data *pdata)
 
 	dev->pdata = pdata;
 
-	reg = (struct s3c_usbotg_reg *)pdata->regs_otg;
+	reg = (struct dwc2_usbotg_reg *)pdata->regs_otg;
 
 	/* regs_otg = (void *)pdata->regs_otg; */
 

+ 1 - 1
drivers/usb/gadget/s3c_udc_otg_regs.h

@@ -48,7 +48,7 @@ struct ep_fifo {
 };
 
 /* USB2.0 OTG Controller register */
-struct s3c_usbotg_reg {
+struct dwc2_usbotg_reg {
 	/* Core Global Registers */
 	u32 gotgctl; /* OTG Control & Status */
 	u32 gotgint; /* OTG Interrupt */