usb: typec: Add wrapper for bus switch set code
authorPrashant Malani <pmalani@chromium.org>
Thu, 12 Jan 2023 22:16:07 +0000 (22:16 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Jan 2023 16:29:00 +0000 (17:29 +0100)
commit2c8cb236ed44d071ef2ed1fbb948eea404551788
treec07920ebe5fefad660d4248f0272303d12aaf5ee
parent2476de8288cc552cbe98edf3f4d4cc2846cf4b8c
usb: typec: Add wrapper for bus switch set code

Add a wrapper that calls the set() function for various switches
associated with a port altmode.

Right now, it just wraps the existing typec_mux_set() command,
but it can be expanded to include other switches in future patches.

No functional changes introduced by this patch.

Signed-off-by: Prashant Malani <pmalani@chromium.org>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20230112221609.540754-3-pmalani@chromium.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/bus.c