Commit 0c7299d6 authored by Peter Chen's avatar Peter Chen Committed by Greg Kroah-Hartman

usb: cdns3: change "cdsn3" to"cdns3"

And delete cdsn3_hw_role_state_machine declare which doesn't
be needed.
Signed-off-by: default avatarPeter Chen <peter.chen@nxp.com>
Reviewed-by: default avatarRoger Quadros <rogerq@ti.com>
Link: https://lore.kernel.org/r/20200331081005.32752-3-peter.chen@nxp.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 85820de1
...@@ -82,8 +82,6 @@ static void cdns3_exit_roles(struct cdns3 *cdns) ...@@ -82,8 +82,6 @@ static void cdns3_exit_roles(struct cdns3 *cdns)
cdns3_drd_exit(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 * cdns3_core_init_role - initialize role of operation
* @cdns: Pointer to cdns3 structure * @cdns: Pointer to cdns3 structure
...@@ -193,12 +191,12 @@ static int cdns3_core_init_role(struct cdns3 *cdns) ...@@ -193,12 +191,12 @@ static int cdns3_core_init_role(struct cdns3 *cdns)
} }
/** /**
* 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. * @cdns: Pointer to controller structure.
* *
* Returns next role to be entered based on hw events. * 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; enum usb_role role;
int id, vbus; int id, vbus;
...@@ -294,7 +292,7 @@ int cdns3_hw_role_switch(struct cdns3 *cdns) ...@@ -294,7 +292,7 @@ int cdns3_hw_role_switch(struct cdns3 *cdns)
pm_runtime_get_sync(cdns->dev); pm_runtime_get_sync(cdns->dev);
current_role = cdns->role; 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 */ /* Do nothing if nothing changed */
if (current_role == real_role) if (current_role == real_role)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment