]> git.dujemihanovic.xyz Git - u-boot.git/commit
clk: ccf: Add some helper functions for clock ops
authorSean Anderson <seanga2@gmail.com>
Sun, 20 Mar 2022 20:34:45 +0000 (16:34 -0400)
committerSean Anderson <seanga2@gmail.com>
Wed, 30 Mar 2022 17:03:29 +0000 (13:03 -0400)
commit3a11b5ae65c269ef9f7bb1e18826e85fc164f161
treeb1705a82741c8cecd63f88a6506b54f0aec7f7db
parente7075ff7b3dce82e4fd6246b87f3c44fabf6323b
clk: ccf: Add some helper functions for clock ops

Most CCF drivers follow a common pattern where their clock ops defer the
actual operation to the backing CCF clock. Add some generic implementations
of these functions to reduce duplication of code.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Link: https://lore.kernel.org/r/20220320203446.740178-1-seanga2@gmail.com
drivers/clk/clk.c
include/linux/clk-provider.h