]> asedeno.scripts.mit.edu Git - linux.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)
commit3567894b6914813299300019e028874927210880
tree8c9234bf93c94717e616074cd966e585e88eedec
parente96c7612315a1183e12d5b6ebd523a3a93617510
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