clk: add new APIs to operate on all available clocks
authorDong Aisheng <aisheng.dong@nxp.com>
Fri, 31 Aug 2018 04:45:54 +0000 (12:45 +0800)
committerStephen Boyd <sboyd@kernel.org>
Tue, 16 Oct 2018 22:42:48 +0000 (15:42 -0700)
commit616e45df7c4aa71279c07cc803a1d51f43f89f37
tree4bd2daac3b7fcc1ec51419d6ad0e78b586d1701a
parentcfdc0411cf01aff7bb44a4edcbaa578ad363ab77
clk: add new APIs to operate on all available clocks

This patch introduces of_clk_bulk_get_all and clk_bulk_x_all APIs
to users who just want to handle all available clocks from device tree
without need to know the detailed clock information likes clock numbers
and names. This is useful in writing some generic drivers to handle clock
part.

Cc: Stephen Boyd <sboyd@codeaurora.org>
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
Tested-by: Thor Thayer <thor.thayer@linux.intel.com>
Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk-bulk.c
include/linux/clk.h