OSDN Git Service

usb: typec: tcpm: Move mod_delayed_work(&port->vdm_state_machine) call into tcpm_queu...
authorHans de Goede <hdegoede@redhat.com>
Fri, 24 Jul 2020 17:46:57 +0000 (19:46 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Jul 2020 12:11:05 +0000 (14:11 +0200)
commit5f2b8d87bca528616e04344d1fc4032dc5ec0f3d
treef134af6c2ab6cd021b625013e3753022cd072958
parent107c89497545232acac83d71600d8030b7361ca2
usb: typec: tcpm: Move mod_delayed_work(&port->vdm_state_machine) call into tcpm_queue_vdm()

All callers of tcpm_queue_vdm() immediately follow the tcpm_queue_vdm()
vdm call with a:

mod_delayed_work(port->wq, &port->vdm_state_machine, 0);

Call, fold this into tcpm_queue_vdm() itself.

Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20200724174702.61754-1-hdegoede@redhat.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/tcpm/tcpm.c