Skip to content

clk: rockchip: cleanup some code duplication

Heiko Stuebner linux-clk linux-rockchip 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7clk: rockchip: lookup General Register Files in rockchip_clk_initdrivers/clk/rockchip/clk.c+3 -30 replies
2/7clk: rockchip: simplify GRF handling in pll clocksdrivers/clk/rockchip/clk-pll.c drivers/clk/rockchip/clk.c drivers/clk/rockchip/clk.h+3 -330 replies
3/7clk: rockchip: drop old_rate calculation on pll rate changesdrivers/clk/rockchip/clk-pll.c+6 -90 replies
4/7clk: rockchip: abstract pll get-params and set-params operationsdrivers/clk/rockchip/clk-pll.c+42 -123 replies
5/7clk: rockchip: generalize pll set-rate operationdrivers/clk/rockchip/clk-pll.c+23 -630 replies
6/7clk: rockchip: move pll rate-comparison into a callable functiondrivers/clk/rockchip/clk-pll.c+61 -300 replies
7/7clk: rockchip: fold pll init functions into a common onedrivers/clk/rockchip/clk-pll.c+29 -960 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/7] clk: rockchip: cleanup some code duplication

This tries to generalize code paths that contain some (nearly) duplicate code. While it's only a bit noticeable now for 3 different plls, the effect should be more pronounced when the next pll-type shows up.

Heiko Stuebner (7):
clk: rockchip: lookup General Register Files in rockchip_clk_init
clk: rockchip: simplify GRF handling in pll clocks
clk: rockchip: drop old_rate calculation on pll rate changes
clk: rockchip: abstract pll get-params and set-params operations
clk: rockchip: generalize pll set-rate operation
clk: rockchip: move pll rate-comparison into a callable function
clk: rockchip: fold pll init functions into one common one

 drivers/clk/rockchip/clk-pll.c | 329 ++++++++++++++++-------------------------
 drivers/clk/rockchip/clk.c     |  10 +-
 drivers/clk/rockchip/clk.h     |   1 -
 3 files changed, 131 insertions(+), 209 deletions(-)
Signature · 1 line
2.6.4