Skip to contentSkip to conversation

clk: Add missing stubs for a few functions

PATCH Applied Dmitry Osipenko 2 participants 2 messages Apr 25, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clk: Add missing stubs for a few functions

Compilation fails if any of undeclared clk_set_*() functions are in use and CONFIG_HAVE_CLK=n.

---
 include/linux/clk.h | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
include/linux/clk.h +16 -0
index d8bc1a856b39..f689fc58d7be 100644
@@ -811,6 +811,22 @@ static inline bool clk_has_parent(struct clk *clk, struct clk *parent)
 	return true;
 }
 
+static inline int clk_set_rate_range(struct clk *clk, unsigned long min,
+				     unsigned long max)
+{
+	return 0;
+}
+
+static inline int clk_set_min_rate(struct clk *clk, unsigned long rate)
+{
+	return 0;
+}
+
+static inline int clk_set_max_rate(struct clk *clk, unsigned long rate)
+{
+	return 0;
+}
+
 static inline int clk_set_parent(struct clk *clk, struct clk *parent)
 {
 	return 0;
Signature · 1 line
2.21.0