]> 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)
commit1140006a261d57a44c7df69139ac6063dec26d88
treeb2da4dbdf1779a4c08c585c18f464d8598f1c524
parent50fc6e05abe0300c224ae8cc093dabf4cd406075
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