Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

And delete cdsn3_hw_role_state_machine declare which doesn't
be needed.

Signed-off-by: Peter Chen <peter.chen@nxp.com>
Reviewed-by: Roger Quadros <rogerq@ti.com>
Link: https://lore.kernel.org/r/20200331081005.32752-3-peter.chen@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Peter Chen and committed by
Greg Kroah-Hartman
0c7299d6 85820de1

+3 -5
+3 -5
drivers/usb/cdns3/core.c
··· 82 82 cdns3_drd_exit(cdns); 83 83 } 84 84 85 - static enum usb_role cdsn3_hw_role_state_machine(struct cdns3 *cdns); 86 - 87 85 /** 88 86 * cdns3_core_init_role - initialize role of operation 89 87 * @cdns: Pointer to cdns3 structure ··· 191 193 } 192 194 193 195 /** 194 - * cdsn3_hw_role_state_machine - role switch state machine based on hw events. 196 + * cdns3_hw_role_state_machine - role switch state machine based on hw events. 195 197 * @cdns: Pointer to controller structure. 196 198 * 197 199 * Returns next role to be entered based on hw events. 198 200 */ 199 - static enum usb_role cdsn3_hw_role_state_machine(struct cdns3 *cdns) 201 + static enum usb_role cdns3_hw_role_state_machine(struct cdns3 *cdns) 200 202 { 201 203 enum usb_role role; 202 204 int id, vbus; ··· 292 294 pm_runtime_get_sync(cdns->dev); 293 295 294 296 current_role = cdns->role; 295 - real_role = cdsn3_hw_role_state_machine(cdns); 297 + real_role = cdns3_hw_role_state_machine(cdns); 296 298 297 299 /* Do nothing if nothing changed */ 298 300 if (current_role == real_role)