Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1316697 > unrolled thread
| Started by | Chen-Yu Tsai <wens@csie.org> |
|---|---|
| First post | 2016-01-25 14:20 +0100 |
| Last post | 2016-01-27 18:40 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH RFC 08/11] clk: sunxi: factors: Drop round_rate from clk ops Chen-Yu Tsai <wens@csie.org> - 2016-01-25 14:20 +0100
Re: [PATCH RFC 08/11] clk: sunxi: factors: Drop round_rate from clk ops Maxime Ripard <maxime.ripard@free-electrons.com> - 2016-01-27 18:40 +0100
| From | Chen-Yu Tsai <wens@csie.org> |
|---|---|
| Date | 2016-01-25 14:20 +0100 |
| Subject | [PATCH RFC 08/11] clk: sunxi: factors: Drop round_rate from clk ops |
| Message-ID | <qUPdO-4ol-57@gated-at.bofh.it> |
The common clock framework requires either determine_rate or round_rate
to be implemented. We use determine_rate so we can pass the parent index
to the get_factors callback. This cannot be done easily with round_rate,
so just drop it.
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
---
drivers/clk/sunxi/clk-factors.c | 16 ----------------
1 file changed, 16 deletions(-)
diff --git a/drivers/clk/sunxi/clk-factors.c b/drivers/clk/sunxi/clk-factors.c
index ac259305d5d5..5769e6532c1d 100644
--- a/drivers/clk/sunxi/clk-factors.c
+++ b/drivers/clk/sunxi/clk-factors.c
@@ -89,21 +89,6 @@ static unsigned long clk_factors_recalc_rate(struct clk_hw *hw,
return rate;
}
-static long clk_factors_round_rate(struct clk_hw *hw, unsigned long rate,
- unsigned long *parent_rate)
-{
- struct clk_factors *factors = to_clk_factors(hw);
- struct factors_request req = {
- .rate = rate,
- .parent_rate = *parent_rate,
- };
-
- factors->get_factors(&req);
-
-
- return rate;
-}
-
static int clk_factors_determine_rate(struct clk_hw *hw,
struct clk_rate_request *req)
{
@@ -189,7 +174,6 @@ static int clk_factors_set_rate(struct clk_hw *hw, unsigned long rate,
static const struct clk_ops clk_factors_ops = {
.determine_rate = clk_factors_determine_rate,
.recalc_rate = clk_factors_recalc_rate,
- .round_rate = clk_factors_round_rate,
.set_rate = clk_factors_set_rate,
};
--
2.7.0
[toc] | [next] | [standalone]
| From | Maxime Ripard <maxime.ripard@free-electrons.com> |
|---|---|
| Date | 2016-01-27 18:40 +0100 |
| Subject | Re: [PATCH RFC 08/11] clk: sunxi: factors: Drop round_rate from clk ops |
| Message-ID | <qVCev-72J-31@gated-at.bofh.it> |
| In reply to | #1316697 |
[Multipart message — attachments visible in raw view] — view raw
On Mon, Jan 25, 2016 at 09:15:44PM +0800, Chen-Yu Tsai wrote: > The common clock framework requires either determine_rate or round_rate > to be implemented. We use determine_rate so we can pass the parent index > to the get_factors callback. This cannot be done easily with round_rate, > so just drop it. > > Signed-off-by: Chen-Yu Tsai <wens@csie.org> Applied, thanks! Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web