OSDN Git Service

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)
commit768a5d4f63c29d3bed5abb3c187312fcf623fa05
treeb2da4dbdf1779a4c08c585c18f464d8598f1c524
parentf21cf9c77ee82ef8adfeb2143adfacf21ec1d5cc
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