Commit a4bb9b3636fe6dfd1cadaf34c42f4fb3b1ebe46c

Authored by Marek Vasut
1 parent c0982871df

usb: s3c-otg: Rename s3c_udc_probe() function

The driver is actually for the Designware DWC2 controller.
This patch is the second and final to rename global symbol,
the s3c_udc_probe() function.

The rename is done automatically:
	$ sed -i "s/s3c_udc_probe/dwc2_udc_probe/g" \
		`git grep s3c_udc_probe | cut -d : -f 1`

Signed-off-by: Marek Vasut <marex@denx.de>

Showing 13 changed files with 14 additions and 14 deletions Side-by-side Diff

board/altera/arria5-socdk/socfpga.c
... ... @@ -75,7 +75,7 @@
75 75  
76 76 int board_usb_init(int index, enum usb_init_type init)
77 77 {
78   - return s3c_udc_probe(&socfpga_otg_data);
  78 + return dwc2_udc_probe(&socfpga_otg_data);
79 79 }
80 80  
81 81 int g_dnl_board_usb_cable_connected(void)
board/altera/cyclone5-socdk/socfpga.c
... ... @@ -75,7 +75,7 @@
75 75  
76 76 int board_usb_init(int index, enum usb_init_type init)
77 77 {
78   - return s3c_udc_probe(&socfpga_otg_data);
  78 + return dwc2_udc_probe(&socfpga_otg_data);
79 79 }
80 80  
81 81 int g_dnl_board_usb_cable_connected(void)
board/broadcom/bcm28155_ap/bcm28155_ap.c
... ... @@ -101,8 +101,8 @@
101 101  
102 102 int board_usb_init(int index, enum usb_init_type init)
103 103 {
104   - debug("%s: performing s3c_udc_probe\n", __func__);
105   - return s3c_udc_probe(&bcm_otg_data);
  104 + debug("%s: performing dwc2_udc_probe\n", __func__);
  105 + return dwc2_udc_probe(&bcm_otg_data);
106 106 }
107 107  
108 108 int g_dnl_bind_fixup(struct usb_device_descriptor *dev, const char *name)
board/denx/mcvevk/socfpga.c
... ... @@ -35,7 +35,7 @@
35 35  
36 36 int board_usb_init(int index, enum usb_init_type init)
37 37 {
38   - return s3c_udc_probe(&socfpga_otg_data);
  38 + return dwc2_udc_probe(&socfpga_otg_data);
39 39 }
40 40  
41 41 int g_dnl_board_usb_cable_connected(void)
board/ebv/socrates/socfpga.c
... ... @@ -75,7 +75,7 @@
75 75  
76 76 int board_usb_init(int index, enum usb_init_type init)
77 77 {
78   - return s3c_udc_probe(&socfpga_otg_data);
  78 + return dwc2_udc_probe(&socfpga_otg_data);
79 79 }
80 80  
81 81 int g_dnl_board_usb_cable_connected(void)
board/samsung/goni/goni.c
... ... @@ -193,7 +193,7 @@
193 193 int board_usb_init(int index, enum usb_init_type init)
194 194 {
195 195 debug("USB_udc_probe\n");
196   - return s3c_udc_probe(&s5pc110_otg_data);
  196 + return dwc2_udc_probe(&s5pc110_otg_data);
197 197 }
198 198 #endif
199 199  
board/samsung/odroid/odroid.c
... ... @@ -510,7 +510,7 @@
510 510 }
511 511 #endif
512 512 debug("USB_udc_probe\n");
513   - return s3c_udc_probe(&s5pc210_otg_data);
  513 + return dwc2_udc_probe(&s5pc210_otg_data);
514 514 }
515 515 #endif
board/samsung/trats/trats.c
... ... @@ -430,7 +430,7 @@
430 430 int board_usb_init(int index, enum usb_init_type init)
431 431 {
432 432 debug("USB_udc_probe\n");
433   - return s3c_udc_probe(&s5pc210_otg_data);
  433 + return dwc2_udc_probe(&s5pc210_otg_data);
434 434 }
435 435  
436 436 int g_dnl_board_usb_cable_connected(void)
board/samsung/trats2/trats2.c
... ... @@ -314,7 +314,7 @@
314 314 int board_usb_init(int index, enum usb_init_type init)
315 315 {
316 316 debug("USB_udc_probe\n");
317   - return s3c_udc_probe(&s5pc210_otg_data);
  317 + return dwc2_udc_probe(&s5pc210_otg_data);
318 318 }
319 319  
320 320 int g_dnl_board_usb_cable_connected(void)
board/samsung/universal_c210/universal.c
... ... @@ -191,7 +191,7 @@
191 191 int board_usb_init(int index, enum usb_init_type init)
192 192 {
193 193 debug("USB_udc_probe\n");
194   - return s3c_udc_probe(&s5pc210_otg_data);
  194 + return dwc2_udc_probe(&s5pc210_otg_data);
195 195 }
196 196  
197 197 int exynos_early_init_f(void)
board/terasic/sockit/socfpga.c
... ... @@ -75,7 +75,7 @@
75 75  
76 76 int board_usb_init(int index, enum usb_init_type init)
77 77 {
78   - return s3c_udc_probe(&socfpga_otg_data);
  78 + return dwc2_udc_probe(&socfpga_otg_data);
79 79 }
80 80  
81 81 int g_dnl_board_usb_cable_connected(void)
drivers/usb/gadget/dwc2_udc_otg.c
... ... @@ -797,7 +797,7 @@
797 797 * probe - binds to the platform device
798 798 */
799 799  
800   -int s3c_udc_probe(struct dwc2_plat_otg_data *pdata)
  800 +int dwc2_udc_probe(struct dwc2_plat_otg_data *pdata)
801 801 {
802 802 struct dwc2_udc *dev = &memory;
803 803 int retval = 0;
include/usb/s3c_udc.h
... ... @@ -20,7 +20,7 @@
20 20 unsigned int usb_gusbcfg;
21 21 };
22 22  
23   -int s3c_udc_probe(struct dwc2_plat_otg_data *pdata);
  23 +int dwc2_udc_probe(struct dwc2_plat_otg_data *pdata);
24 24  
25 25 #endif