[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <6ddf998b90ec9f4ac1f2467f6053f1464d8c0e79.1764582057.git.geert@linux-m68k.org>
Date: Mon, 1 Dec 2025 10:42:28 +0100
From: Geert Uytterhoeven <geert@...ux-m68k.org>
To: Russell King <linux@...linux.org.uk>,
Michael Turquette <mturquette@...libre.com>,
Stephen Boyd <sboyd@...nel.org>,
Tero Kristo <t-kristo@...com>,
Tony Lindgren <tony@...mide.com>,
Keerthy <j-keerthy@...com>,
Russ Dill <Russ.Dill@...com>
Cc: linux-clk@...r.kernel.org,
linux-kernel@...r.kernel.org,
Geert Uytterhoeven <geert@...ux-m68k.org>
Subject: [PATCH 3/3] clk: Annotate #else and #endif
Annotate the #else and #endif keywords in large #ifdef/#else/#endif
sections, to improve readability.
Signed-off-by: Geert Uytterhoeven <geert@...ux-m68k.org>
---
include/linux/clk.h | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/include/linux/clk.h b/include/linux/clk.h
index 9e5291f37c50c78a..efb91604d3f667e2 100644
--- a/include/linux/clk.h
+++ b/include/linux/clk.h
@@ -245,7 +245,7 @@ int clk_save_context(void);
*/
void clk_restore_context(void);
-#else
+#else /* !CONFIG_COMMON_CLK */
static inline int clk_notifier_register(struct clk *clk,
struct notifier_block *nb)
@@ -317,7 +317,7 @@ static inline int clk_save_context(void)
static inline void clk_restore_context(void) {}
-#endif
+#endif /* !CONFIG_COMMON_CLK */
#ifdef CONFIG_HAVE_CLK_PREPARE
/**
@@ -361,7 +361,7 @@ void clk_bulk_unprepare(int num_clks, const struct clk_bulk_data *clks);
* to be right.
*/
bool clk_is_enabled_when_prepared(struct clk *clk);
-#else
+#else /* !CONFIG_HAVE_CLK_PREPARE */
static inline int clk_prepare(struct clk *clk)
{
might_sleep();
@@ -390,7 +390,7 @@ static inline bool clk_is_enabled_when_prepared(struct clk *clk)
{
return false;
}
-#endif
+#endif /* !CONFIG_HAVE_CLK_PREPARE */
#ifdef CONFIG_HAVE_CLK
/**
@@ -1136,7 +1136,7 @@ static inline struct clk *clk_get_sys(const char *dev_id, const char *con_id)
return NULL;
}
-#endif
+#endif /* !CONFIG_HAVE_CLK */
/* clk_prepare_enable helps cases using clk_enable in non-atomic context. */
static inline int clk_prepare_enable(struct clk *clk)
--
2.43.0
Powered by blists - more mailing lists