[PATCH v4 06/10] linux: clk: add fw_name
Steffen Trumtrar
s.trumtrar at pengutronix.de
Mon Jul 7 04:22:48 PDT 2025
Allow setting a local parent name for the provider that is registering
the clk. This is done in Linux, too.
Signed-off-by: Steffen Trumtrar <s.trumtrar at pengutronix.de>
---
include/linux/clk.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/linux/clk.h b/include/linux/clk.h
index f2c02c9eec8fca9702176d0265eecc3620e74fdb..f893d9071371340366b118b506e597195d3f1d58 100644
--- a/include/linux/clk.h
+++ b/include/linux/clk.h
@@ -352,11 +352,13 @@ struct clk_ops {
/**
* struct clk_parent_data - clk parent information
* @hw: parent clk_hw pointer (used for clk providers with internal clks)
+ * @fw_name: parent name local to provider registering clk
* @name: globally unique parent name (used as a fallback)
* @index: parent index local to provider registering clk (if @fw_name absent)
*/
struct clk_parent_data {
const struct clk_hw *hw;
+ const char *fw_name;
const char *name;
int index;
};
--
2.46.0
More information about the barebox
mailing list