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>
This commit is contained in:
parent
c0982871df
commit
a4bb9b3636
@ -75,7 +75,7 @@ struct dwc2_plat_otg_data socfpga_otg_data = {
|
||||
|
||||
int board_usb_init(int index, enum usb_init_type init)
|
||||
{
|
||||
return s3c_udc_probe(&socfpga_otg_data);
|
||||
return dwc2_udc_probe(&socfpga_otg_data);
|
||||
}
|
||||
|
||||
int g_dnl_board_usb_cable_connected(void)
|
||||
|
@ -75,7 +75,7 @@ struct dwc2_plat_otg_data socfpga_otg_data = {
|
||||
|
||||
int board_usb_init(int index, enum usb_init_type init)
|
||||
{
|
||||
return s3c_udc_probe(&socfpga_otg_data);
|
||||
return dwc2_udc_probe(&socfpga_otg_data);
|
||||
}
|
||||
|
||||
int g_dnl_board_usb_cable_connected(void)
|
||||
|
@ -101,8 +101,8 @@ static struct dwc2_plat_otg_data bcm_otg_data = {
|
||||
|
||||
int board_usb_init(int index, enum usb_init_type init)
|
||||
{
|
||||
debug("%s: performing s3c_udc_probe\n", __func__);
|
||||
return s3c_udc_probe(&bcm_otg_data);
|
||||
debug("%s: performing dwc2_udc_probe\n", __func__);
|
||||
return dwc2_udc_probe(&bcm_otg_data);
|
||||
}
|
||||
|
||||
int g_dnl_bind_fixup(struct usb_device_descriptor *dev, const char *name)
|
||||
|
@ -35,7 +35,7 @@ struct dwc2_plat_otg_data socfpga_otg_data = {
|
||||
|
||||
int board_usb_init(int index, enum usb_init_type init)
|
||||
{
|
||||
return s3c_udc_probe(&socfpga_otg_data);
|
||||
return dwc2_udc_probe(&socfpga_otg_data);
|
||||
}
|
||||
|
||||
int g_dnl_board_usb_cable_connected(void)
|
||||
|
@ -75,7 +75,7 @@ struct dwc2_plat_otg_data socfpga_otg_data = {
|
||||
|
||||
int board_usb_init(int index, enum usb_init_type init)
|
||||
{
|
||||
return s3c_udc_probe(&socfpga_otg_data);
|
||||
return dwc2_udc_probe(&socfpga_otg_data);
|
||||
}
|
||||
|
||||
int g_dnl_board_usb_cable_connected(void)
|
||||
|
@ -193,7 +193,7 @@ struct dwc2_plat_otg_data s5pc110_otg_data = {
|
||||
int board_usb_init(int index, enum usb_init_type init)
|
||||
{
|
||||
debug("USB_udc_probe\n");
|
||||
return s3c_udc_probe(&s5pc110_otg_data);
|
||||
return dwc2_udc_probe(&s5pc110_otg_data);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -510,6 +510,6 @@ int board_usb_init(int index, enum usb_init_type init)
|
||||
}
|
||||
#endif
|
||||
debug("USB_udc_probe\n");
|
||||
return s3c_udc_probe(&s5pc210_otg_data);
|
||||
return dwc2_udc_probe(&s5pc210_otg_data);
|
||||
}
|
||||
#endif
|
||||
|
@ -430,7 +430,7 @@ struct dwc2_plat_otg_data s5pc210_otg_data = {
|
||||
int board_usb_init(int index, enum usb_init_type init)
|
||||
{
|
||||
debug("USB_udc_probe\n");
|
||||
return s3c_udc_probe(&s5pc210_otg_data);
|
||||
return dwc2_udc_probe(&s5pc210_otg_data);
|
||||
}
|
||||
|
||||
int g_dnl_board_usb_cable_connected(void)
|
||||
|
@ -314,7 +314,7 @@ struct dwc2_plat_otg_data s5pc210_otg_data = {
|
||||
int board_usb_init(int index, enum usb_init_type init)
|
||||
{
|
||||
debug("USB_udc_probe\n");
|
||||
return s3c_udc_probe(&s5pc210_otg_data);
|
||||
return dwc2_udc_probe(&s5pc210_otg_data);
|
||||
}
|
||||
|
||||
int g_dnl_board_usb_cable_connected(void)
|
||||
|
@ -191,7 +191,7 @@ struct dwc2_plat_otg_data s5pc210_otg_data = {
|
||||
int board_usb_init(int index, enum usb_init_type init)
|
||||
{
|
||||
debug("USB_udc_probe\n");
|
||||
return s3c_udc_probe(&s5pc210_otg_data);
|
||||
return dwc2_udc_probe(&s5pc210_otg_data);
|
||||
}
|
||||
|
||||
int exynos_early_init_f(void)
|
||||
|
@ -75,7 +75,7 @@ struct dwc2_plat_otg_data socfpga_otg_data = {
|
||||
|
||||
int board_usb_init(int index, enum usb_init_type init)
|
||||
{
|
||||
return s3c_udc_probe(&socfpga_otg_data);
|
||||
return dwc2_udc_probe(&socfpga_otg_data);
|
||||
}
|
||||
|
||||
int g_dnl_board_usb_cable_connected(void)
|
||||
|
@ -797,7 +797,7 @@ static struct dwc2_udc memory = {
|
||||
* probe - binds to the platform device
|
||||
*/
|
||||
|
||||
int s3c_udc_probe(struct dwc2_plat_otg_data *pdata)
|
||||
int dwc2_udc_probe(struct dwc2_plat_otg_data *pdata)
|
||||
{
|
||||
struct dwc2_udc *dev = &memory;
|
||||
int retval = 0;
|
||||
|
@ -20,6 +20,6 @@ struct dwc2_plat_otg_data {
|
||||
unsigned int usb_gusbcfg;
|
||||
};
|
||||
|
||||
int s3c_udc_probe(struct dwc2_plat_otg_data *pdata);
|
||||
int dwc2_udc_probe(struct dwc2_plat_otg_data *pdata);
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user