phy: cadence-torrent: Add separate functions for reusable code
authorSwapnil Jakhade <sjakhade@cadence.com>
Wed, 28 Jul 2021 14:54:52 +0000 (16:54 +0200)
committerVinod Koul <vkoul@kernel.org>
Tue, 17 Aug 2021 10:12:44 +0000 (15:42 +0530)
commit8f3ced2fd4906523e251f252dee03f6c22129e08
tree06e7668eaa7f81c588feb5ad53c350cc1ffd2da6
parent1cc455150b7a67f3bbfe1dce03a97b4ae88778d5
phy: cadence-torrent: Add separate functions for reusable code

Torrent PHY driver currently supports single link DP configuration.
Prepare driver to support multilink DP configurations by adding
separate functions for common initialization sequence.

Signed-off-by: Swapnil Jakhade <sjakhade@cadence.com>
Reviewed-by: Kishon Vijay Abraham I <kishon@ti.com>
Link: https://lore.kernel.org/r/20210728145454.15945-8-sjakhade@cadence.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/cadence/phy-cadence-torrent.c