]> git.baikalelectronics.ru Git - kernel.git/commit
clk: Use 'parent' to shorten lines in __clk_core_init()
authorStephen Boyd <sboyd@kernel.org>
Wed, 5 Feb 2020 23:28:00 +0000 (15:28 -0800)
committerStephen Boyd <sboyd@kernel.org>
Wed, 12 Feb 2020 23:27:07 +0000 (15:27 -0800)
commitd6637e08706404208c4c4560f7337cd56bf1a6cc
treeb2da4dbdf1779a4c08c585c18f464d8598f1c524
parent5c56bd9fcaabdde3a3915a0ef0ed18041e45892e
clk: Use 'parent' to shorten lines in __clk_core_init()

Some lines are getting long in this function. Let's move 'parent' up to
the top of the function and use it in many places whenever there is a
parent for a clk. This shortens some lines by avoiding core->parent->
indirections.

Cc: Douglas Anderson <dianders@chromium.org>
Cc: Heiko Stuebner <heiko@sntech.de>
Cc: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Link: https://lkml.kernel.org/r/20200205232802.29184-3-sboyd@kernel.org
Acked-by: Jerome Brunet <jbrunet@baylibre.com>
drivers/clk/clk.c