]> git.baikalelectronics.ru Git - kernel.git/commit
clk: core: introduce clk_hw_set_parent()
authorNeil Armstrong <narmstrong@baylibre.com>
Wed, 31 Jul 2019 08:40:16 +0000 (10:40 +0200)
committerJerome Brunet <jbrunet@baylibre.com>
Fri, 9 Aug 2019 10:09:52 +0000 (12:09 +0200)
commit573f751d8a666293d69bfc114d588e3d7e8966a8
tree8c9234bf93c94717e616074cd966e585e88eedec
parent126cecaa0a0ec654a01e22b080ee7c39d399711a
clk: core: introduce clk_hw_set_parent()

Introduce the clk_hw_set_parent() provider call to change parent of
a clock by using the clk_hw pointers.

This eases the clock reparenting from clock rate notifiers and
implementing DVFS with simpler code avoiding the boilerplates
functions as __clk_lookup(clk_hw_get_name()) then clk_set_parent().

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Acked-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Acked-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
drivers/clk/clk.c
include/linux/clk-provider.h