All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] clk: add helpers for generic clocks
@ 2018-01-18 11:01 Jerome Brunet
  2018-01-18 11:01 ` [PATCH 1/2] clk: divider: export clk_div_mask() helper Jerome Brunet
  2018-01-18 11:01 ` [PATCH 2/2] clk: mux: add helper function for index/value translation Jerome Brunet
  0 siblings, 2 replies; 3+ messages in thread
From: Jerome Brunet @ 2018-01-18 11:01 UTC (permalink / raw)
  To: Stephen Boyd, Michael Turquette; +Cc: Jerome Brunet, linux-clk, linux-kernel

This series exports an helper providing the divider mask in the generic
divider and helpers to translate the between the index and the register
value in the generic mux.

The goal is to avoid duplicating this code in clock providers deriving
from these generic clocks, something I plan do doing in upcoming
changeset for meson clocks [0]

In patch 1, I have 's/div_mask/clk_div_mask' to avoid the conflict with
tegra's divider, which also defines the macro div_mask() but does not
actually derives from the generic divider.

[0]: https://github.com/jeromebrunet/linux/commit/b1bfb0fc79d1b14cd4b74ec8d1d9167171973af0

Jerome Brunet (2):
  clk: divider: export clk_div_mask() helper
  clk: mux: add helper function for index/value translation

 drivers/clk/clk-divider.c    | 24 +++++++-------
 drivers/clk/clk-mux.c        | 75 +++++++++++++++++++++++++-------------------
 include/linux/clk-provider.h |  5 +++
 3 files changed, 59 insertions(+), 45 deletions(-)

-- 
2.14.3

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-01-18 11:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-18 11:01 [PATCH 0/2] clk: add helpers for generic clocks Jerome Brunet
2018-01-18 11:01 ` [PATCH 1/2] clk: divider: export clk_div_mask() helper Jerome Brunet
2018-01-18 11:01 ` [PATCH 2/2] clk: mux: add helper function for index/value translation Jerome Brunet

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.