[PATCH 16/19] clk: define aliases for clk_bulk_prepare_enable/disable_unprepare
Ahmad Fatoum
a.fatoum at pengutronix.de
Fri Jan 19 08:26:07 PST 2024
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 at pengutronix.de>
---
include/linux/clk.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/linux/clk.h b/include/linux/clk.h
index b555e40ec459..1bdfb21d509e 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.
--
2.39.2
More information about the barebox
mailing list