summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2024-01-19 17:26:07 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2024-01-22 13:54:32 +0100
commitc039c31bba0647f57fe54a0daa783289ebf4f064 (patch)
treea0f4df1df4aada0c5584e93847ee0fa7d4fd62be /include/linux
parent442f304e615161fb75239dfbf4517e69a4da17d9 (diff)
downloadbarebox-c039c31bba0647f57fe54a0daa783289ebf4f064.tar.gz
barebox-c039c31bba0647f57fe54a0daa783289ebf4f064.tar.xz
clk: define aliases for clk_bulk_prepare_enable/disable_unprepare
We don't have a separate atomic prepare/unprepare step for clocks in barebox and instead combine it with enable/disable. We have macros to alias prepare_enable/disable_unprepare for non-bulk API, so add the same for the bulk API too. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20240119162610.1014870-17-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/clk.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/clk.h b/include/linux/clk.h
index ab56c5c395..aeff020fea 100644
--- a/include/linux/clk.h
+++ b/include/linux/clk.h
@@ -1019,6 +1019,9 @@ static inline void clk_bulk_disable(int num_clks,
#endif
+#define clk_bulk_prepare_enable clk_bulk_enable
+#define clk_bulk_disable_unprepare clk_bulk_disable
+
/**
* clk_get_optional - lookup and obtain a reference to an optional clock
* producer.