[PATCH 16/19] clk: define aliases for clk_bulk_prepare_enable/disable_unprepare

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


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@xxxxxxxxxxxxxx>
 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,
+#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.

[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux