]> git.ipfire.org Git - thirdparty/linux.git/commit
usb: typec: Stub out typec_switch APIs when CONFIG_TYPEC=n
authorStephen Boyd <swboyd@chromium.org>
Tue, 16 Sep 2025 02:16:20 +0000 (10:16 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Sep 2025 10:42:30 +0000 (12:42 +0200)
commit45fe729be9a6be326a1ca25af82d34de32ba2ce8
treefc445e5e1c8059612de0492911511a4eba858724
parent368ed48a5ef52e384f54d5809f0a0b79ac567479
usb: typec: Stub out typec_switch APIs when CONFIG_TYPEC=n

Ease driver development by adding stubs for the typec_switch APIs when
CONFIG_TYPEC=n. Copy the same method used for the typec_mux APIs to be
consistent.

Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Signed-off-by: Xu Yang <xu.yang_2@nxp.com>
Link: https://lore.kernel.org/r/20250916021620.1303995-1-xu.yang_2@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/usb/typec_mux.h