mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 10:04:04 +02:00
drm/msm/disp/mdp4/mdp4_lvds_pll: convert from round_rate() to determine_rate()
The round_rate() clk ops is deprecated, so migrate this driver from round_rate() to determine_rate() using the Coccinelle semantic patch on the cover letter of this series. Acked-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Signed-off-by: Brian Masney <bmasney@redhat.com> Patchwork: https://patchwork.freedesktop.org/patch/667980/ Link: https://lore.kernel.org/r/20250811-drm-clk-round-rate-v2-3-4a91ccf239cf@redhat.com Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
This commit is contained in:
parent
a38d1fbbc9
commit
470085357f
|
|
@ -98,11 +98,14 @@ static unsigned long mdp4_lvds_pll_recalc_rate(struct clk_hw *hw,
|
|||
return lvds_pll->pixclk;
|
||||
}
|
||||
|
||||
static long mdp4_lvds_pll_round_rate(struct clk_hw *hw, unsigned long rate,
|
||||
unsigned long *parent_rate)
|
||||
static int mdp4_lvds_pll_determine_rate(struct clk_hw *hw,
|
||||
struct clk_rate_request *req)
|
||||
{
|
||||
const struct pll_rate *pll_rate = find_rate(rate);
|
||||
return pll_rate->rate;
|
||||
const struct pll_rate *pll_rate = find_rate(req->rate);
|
||||
|
||||
req->rate = pll_rate->rate;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int mdp4_lvds_pll_set_rate(struct clk_hw *hw, unsigned long rate,
|
||||
|
|
@ -118,7 +121,7 @@ static const struct clk_ops mdp4_lvds_pll_ops = {
|
|||
.enable = mdp4_lvds_pll_enable,
|
||||
.disable = mdp4_lvds_pll_disable,
|
||||
.recalc_rate = mdp4_lvds_pll_recalc_rate,
|
||||
.round_rate = mdp4_lvds_pll_round_rate,
|
||||
.determine_rate = mdp4_lvds_pll_determine_rate,
|
||||
.set_rate = mdp4_lvds_pll_set_rate,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user