aboutsummaryrefslogtreecommitdiffstats
path: root/lib/raid6/algos.c
diff options
context:
space:
mode:
authorAdam Ford <[email protected]>2025-05-04 20:40:41 +0000
committerVinod Koul <[email protected]>2025-05-14 11:15:51 +0000
commit41db4623346777be6ce694338b5adc570c4b671d (patch)
tree45fe77581d59265b60ca97afb1d76689143a3404 /lib/raid6/algos.c
parentphy: freescale: fsl-samsung-hdmi: Rename phy_clk_round_rate (diff)
downloadkernel-41db4623346777be6ce694338b5adc570c4b671d.tar.gz
kernel-41db4623346777be6ce694338b5adc570c4b671d.zip
phy: freescale: fsl-samsung-hdmi: Refactor finding PHY settings
There are two functions, round_rate and set_rate that duplicate a lot of the same work, so simplify the code by creating a helper function that will identify the phy settings for a desired clock rate and return the structure with the corresponding settings. >From this structure, the round_rate and set_rate can both get what they need to achieve the clock setting closest to the desired rate as possible while minimizing the duplicated code. Also rename phy_clk_set_rate to fsl_samsung_hdmi_phy_clk_set_rate. Suggested-by: Uwe Kleine-König <[email protected]> Signed-off-by: Adam Ford <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'lib/raid6/algos.c')
0 files changed, 0 insertions, 0 deletions