]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
clk: actions: Fix discarding const qualifier by 'container_of' macro
authorAdrian Barnaś <abarnas@google.com>
Tue, 28 Oct 2025 15:20:11 +0000 (15:20 +0000)
committerStephen Boyd <sboyd@kernel.org>
Fri, 21 Nov 2025 03:23:43 +0000 (19:23 -0800)
Remove const qualifier from functions parameter because it was discarded
when container_of was called. Received pointer had mutable access to
it through received container.

Signed-off-by: Adrian Barnaś <abarnas@google.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/actions/owl-common.h
drivers/clk/actions/owl-composite.h
drivers/clk/actions/owl-divider.h
drivers/clk/actions/owl-factor.h
drivers/clk/actions/owl-gate.h
drivers/clk/actions/owl-mux.h
drivers/clk/actions/owl-pll.h

index 8fb65f3e82d797fb2aa9a2cbcf1cf562f45705ac..5768a2e0f6a071b209646ffdc32deb032f98f012 100644 (file)
@@ -32,7 +32,7 @@ struct owl_clk_desc {
 };
 
 static inline struct owl_clk_common *
-       hw_to_owl_clk_common(const struct clk_hw *hw)
+       hw_to_owl_clk_common(struct clk_hw *hw)
 {
        return container_of(hw, struct owl_clk_common, hw);
 }
index bca38bf8f218c73785e06c467d0a3c39d9172873..6d7c6f0c47c8b70136c96dc10b068cd3f42eda6d 100644 (file)
@@ -108,7 +108,7 @@ struct owl_composite {
                },                                                      \
        }
 
-static inline struct owl_composite *hw_to_owl_comp(const struct clk_hw *hw)
+static inline struct owl_composite *hw_to_owl_comp(struct clk_hw *hw)
 {
        struct owl_clk_common *common = hw_to_owl_clk_common(hw);
 
index 083be6d80954d78fbbb39fce8aceab28f1e31a5d..d76f58782c52885a66c96e8bf13b0dea3ba51efd 100644 (file)
@@ -49,7 +49,7 @@ struct owl_divider {
                },                                                      \
        }
 
-static inline struct owl_divider *hw_to_owl_divider(const struct clk_hw *hw)
+static inline struct owl_divider *hw_to_owl_divider(struct clk_hw *hw)
 {
        struct owl_clk_common *common = hw_to_owl_clk_common(hw);
 
index 04b89cbfdccbb0ded9ceb5abc4df9607e3613c0a..24c704d409258ed0ba59670e42766064128c2fa4 100644 (file)
@@ -57,7 +57,7 @@ struct owl_factor {
 
 #define div_mask(d) ((1 << ((d)->width)) - 1)
 
-static inline struct owl_factor *hw_to_owl_factor(const struct clk_hw *hw)
+static inline struct owl_factor *hw_to_owl_factor(struct clk_hw *hw)
 {
        struct owl_clk_common *common = hw_to_owl_clk_common(hw);
 
index c2f161c93fda5acc7b9641a88f45086c18252ba0..ac458d4385ee79ceba99fa0b0d2b054ca97e76bf 100644 (file)
@@ -56,7 +56,7 @@ struct owl_gate {
                },                                                      \
        }                                                               \
 
-static inline struct owl_gate *hw_to_owl_gate(const struct clk_hw *hw)
+static inline struct owl_gate *hw_to_owl_gate(struct clk_hw *hw)
 {
        struct owl_clk_common *common = hw_to_owl_clk_common(hw);
 
index 53b9ab665294ca873b8b0288f2a2c1814210802a..dc0ecc2d5e10aa6dfa6896e9d8e4cff472a26ca8 100644 (file)
@@ -44,7 +44,7 @@ struct owl_mux {
                },                                                      \
        }
 
-static inline struct owl_mux *hw_to_owl_mux(const struct clk_hw *hw)
+static inline struct owl_mux *hw_to_owl_mux(struct clk_hw *hw)
 {
        struct owl_clk_common *common = hw_to_owl_clk_common(hw);
 
index 78e5fc360b03b59cf86e34dc6704f762548094d3..58e19f1ade43f013681d2db8c274815872b2931c 100644 (file)
@@ -98,7 +98,7 @@ struct owl_pll {
 
 #define mul_mask(m)            ((1 << ((m)->width)) - 1)
 
-static inline struct owl_pll *hw_to_owl_pll(const struct clk_hw *hw)
+static inline struct owl_pll *hw_to_owl_pll(struct clk_hw *hw)
 {
        struct owl_clk_common *common = hw_to_owl_clk_common(hw);