usb: cdns3: change "cdsn3" to"cdns3"
authorPeter Chen <peter.chen@nxp.com>
Tue, 31 Mar 2020 08:10:04 +0000 (16:10 +0800)
committerFelipe Balbi <balbi@kernel.org>
Mon, 25 May 2020 08:09:37 +0000 (11:09 +0300)
And delete cdsn3_hw_role_state_machine declare which doesn't
be needed.

Reviewed-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/cdns3/core.c

index f57c66a9f87c46a6fe8da954fad467e5b048c3cd..19bbb5b7e6b6c603e478d78a2fc7d1781255a59a 100644 (file)
@@ -82,8 +82,6 @@ static void cdns3_exit_roles(struct cdns3 *cdns)
        cdns3_drd_exit(cdns);
 }
 
-static enum usb_role cdsn3_hw_role_state_machine(struct cdns3 *cdns);
-
 /**
  * cdns3_core_init_role - initialize role of operation
  * @cdns: Pointer to cdns3 structure
@@ -193,12 +191,12 @@ err:
 }
 
 /**
- * cdsn3_hw_role_state_machine  - role switch state machine based on hw events.
+ * cdns3_hw_role_state_machine  - role switch state machine based on hw events.
  * @cdns: Pointer to controller structure.
  *
  * Returns next role to be entered based on hw events.
  */
-static enum usb_role cdsn3_hw_role_state_machine(struct cdns3 *cdns)
+static enum usb_role cdns3_hw_role_state_machine(struct cdns3 *cdns)
 {
        enum usb_role role;
        int id, vbus;
@@ -294,7 +292,7 @@ int cdns3_hw_role_switch(struct cdns3 *cdns)
        pm_runtime_get_sync(cdns->dev);
 
        current_role = cdns->role;
-       real_role = cdsn3_hw_role_state_machine(cdns);
+       real_role = cdns3_hw_role_state_machine(cdns);
 
        /* Do nothing if nothing changed */
        if (current_role == real_role)