mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
media: platform: ti: omap3isp: isp: 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. Signed-off-by: Brian Masney <bmasney@redhat.com> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
This commit is contained in:
committed by
Hans Verkuil
parent
a0df157faf
commit
f6be653b38
@@ -240,11 +240,11 @@ static u32 isp_xclk_calc_divider(unsigned long *rate, unsigned long parent_rate)
|
||||
return divider;
|
||||
}
|
||||
|
||||
static long isp_xclk_round_rate(struct clk_hw *hw, unsigned long rate,
|
||||
unsigned long *parent_rate)
|
||||
static int isp_xclk_determine_rate(struct clk_hw *hw,
|
||||
struct clk_rate_request *req)
|
||||
{
|
||||
isp_xclk_calc_divider(&rate, *parent_rate);
|
||||
return rate;
|
||||
isp_xclk_calc_divider(&req->rate, req->best_parent_rate);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int isp_xclk_set_rate(struct clk_hw *hw, unsigned long rate,
|
||||
@@ -275,7 +275,7 @@ static const struct clk_ops isp_xclk_ops = {
|
||||
.enable = isp_xclk_enable,
|
||||
.disable = isp_xclk_disable,
|
||||
.recalc_rate = isp_xclk_recalc_rate,
|
||||
.round_rate = isp_xclk_round_rate,
|
||||
.determine_rate = isp_xclk_determine_rate,
|
||||
.set_rate = isp_xclk_set_rate,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user