]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
clk: mux: Split out register accessors for reuse
authorStephen Boyd <sboyd@codeaurora.org>
Sat, 21 Mar 2015 06:45:21 +0000 (23:45 -0700)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Mon, 14 Aug 2017 10:51:21 +0000 (12:51 +0200)
commitfae65ed044f7a67439d2f2881ddd4f63df048cc8
tree7193944b8502b2ada9438ba5e0127adacab1fcaa
parent8f9ad55ba1874e11e1c15352aefd6cb52adff551
clk: mux: Split out register accessors for reuse

We want to reuse the logic in clk-mux.c for other clock drivers
that don't use readl as register accessors. Fortunately, there
really isn't much to the mux code besides the table indirection
and quirk flags if you assume any bit shifting and masking has
been done already. Pull that logic out into reusable functions
that operate on an optional table and some flags so that other
drivers can use the same logic.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/clk-mux.c
include/linux/clk-provider.h