projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1e0e39
)
clk: rockchip: Remove values for mmask and nmask in struct clk_fractional_divider
author
Christophe JAILLET
<christophe.jaillet@wanadoo.fr>
Sun, 2 Apr 2023 09:42:06 +0000
(11:42 +0200)
committer
Stephen Boyd
<sboyd@kernel.org>
Wed, 5 Apr 2023 19:09:27 +0000
(12:09 -0700)
Now that fractional_divider clk computes mmask and nmask when needed, there
is no more need to provide them explicitly anymore.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link:
https://lore.kernel.org/r/58e1950566e40e2fbb31004baee57a164ca6a390.1680423909.git.christophe.jaillet@wanadoo.fr
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/rockchip/clk.c
patch
|
blob
|
history
diff --git
a/drivers/clk/rockchip/clk.c
b/drivers/clk/rockchip/clk.c
index a8646794575a31353d5a5c3b07fef5c3e30a82e2..4059d9365ae642e3e967138e67b9e664c15b6851 100644
(file)
--- a/
drivers/clk/rockchip/clk.c
+++ b/
drivers/clk/rockchip/clk.c
@@
-244,10
+244,8
@@
static struct clk *rockchip_clk_register_frac_branch(
div->reg = base + muxdiv_offset;
div->mshift = 16;
div->mwidth = 16;
- div->mmask = GENMASK(div->mwidth - 1, 0) << div->mshift;
div->nshift = 0;
div->nwidth = 16;
- div->nmask = GENMASK(div->nwidth - 1, 0) << div->nshift;
div->lock = lock;
div->approximation = rockchip_fractional_approximation;
div_ops = &clk_fractional_divider_ops;