USB: typec: tps6598x: Refactor tps6598x port registration
authorAbdel Alkuor <abdelalkuor@geotab.com>
Tue, 3 Oct 2023 15:58:37 +0000 (11:58 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Oct 2023 07:02:07 +0000 (09:02 +0200)
commit8f999ce60ea3d47886b042ef1f22bb184b6e9c59
tree65ed8c7ddc3010164d2178c75aa5b0d7808f7054
parentc5e95ec39d6424633074fd0397723c002e9e85ac
USB: typec: tps6598x: Refactor tps6598x port registration

tps6598x and cd321x use TPS_REG_SYSTEM_CONF to get dr/pr roles
where other similar devices don't have this register such as tps25750.

Move tps6598x port registration to its own function

Signed-off-by: Abdel Alkuor <abdelalkuor@geotab.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20231003155842.57313-5-alkuor@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/tipd/core.c