aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorAngeloGioacchino Del Regno <[email protected]>2021-01-09 14:51:08 +0100
committerRob Clark <[email protected]>2021-02-01 08:30:14 -0800
commit5c191fef4ce2fc4310d8174bd3861474919201e4 (patch)
tree5bb5b7b573c1590412d668cb1359a78fd942f012 /lib/mpi/mpi-sub-ui.c
parentc703d5789590935c573bbd080a2166b72d51a017 (diff)
drm/msm/dsi_pll_10nm: Fix dividing the same numbers twice
In function dsi_pll_calc_dec_frac we are calculating the decimal div start parameter by dividing the decimal multiple by the fractional multiplier: the remainder of that operation is stored to then get programmed to the fractional divider registers of the PLL. It's useless to call div_u64_rem to get the remainder and *then* call div_u64 to get the division result, as the first is already giving that result: let's fix it by just caring about the result of div_u64_rem. Signed-off-by: AngeloGioacchino Del Regno <[email protected]> Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions