]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
usb: typec: ps883x: Rework ps883x_set()
authorKonrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Tue, 14 Oct 2025 16:06:46 +0000 (18:06 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Oct 2025 08:58:31 +0000 (10:58 +0200)
commit6bebd9b77726a27e37834acd8f9c0f2cbbe2618b
tree984e60c4436c9518ef813a9ee356501fb9b6f03b
parentf83cb615cb7a615f9c15787f914a8eee1c6e93d4
usb: typec: ps883x: Rework ps883x_set()

In preparation to extend it with new alt/USB modes, rework the code a
bit by changing the flow into a pair of switch statements.

Reviewed-by: Jack Pham <jack.pham@oss.qualcomm.com>
Signed-off-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://patch.msgid.link/20251014-topic-ps883x_usb4-v1-2-e6adb1a4296e@oss.qualcomm.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/mux/ps883x.c