phy: dphy: refactor get_default_config
authorMarco Felsch <m.felsch@pengutronix.de>
Fri, 30 Sep 2022 12:48:09 +0000 (14:48 +0200)
committerSakari Ailus <sakari.ailus@linux.intel.com>
Thu, 27 Oct 2022 11:38:04 +0000 (14:38 +0300)
commit7afa5db0eaae8f6c110690311167d5e5cd728efb
treedcc0abb610b1960a65d4fd4dae7bc3f7530d74bb
parent379c258677ccf0dab1032d531829f6d8440713fa
phy: dphy: refactor get_default_config

Factor out the calculation into phy_mipi_dphy_calc_config(). This is
needed for the follow up patch which adds the support to calculate the
timings based on a given hs clock. No functional changes are done.

Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Acked-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
drivers/phy/phy-core-mipi-dphy.c