]> git.baikalelectronics.ru Git - kernel.git/commit
clk: Provide new devm_clk helpers for prepared and enabled clocks
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fri, 20 May 2022 07:57:36 +0000 (09:57 +0200)
committerStephen Boyd <sboyd@kernel.org>
Thu, 16 Jun 2022 02:22:29 +0000 (19:22 -0700)
commit7d7b91df8c497a09d6bb8be79be365c3588ce3e7
treea24e61a5dc957d0410470fae0c10e9d5ab31021e
parent111eac8fbc764cd030632bf508acec766bde4f75
clk: Provide new devm_clk helpers for prepared and enabled clocks

When a driver keeps a clock prepared (or enabled) during the whole
lifetime of the driver, these helpers allow to simplify the drivers.

Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Alexandru Ardelean <aardelean@deviqon.com>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20220520075737.758761-4-u.kleine-koenig@pengutronix.de
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk-devres.c
include/linux/clk.h