Unverified Commit 17490011 authored by Adrian Barnaś's avatar Adrian Barnaś Committed by Stephen Boyd
Browse files

clk: actions: Fix discarding const qualifier by 'container_of' macro



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: default avatarAdrian Barnaś <abarnas@google.com>
Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent 23b2d2fb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
}
+1 −1
Original line number Diff line number Diff line
@@ -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);

+1 −1
Original line number Diff line number Diff line
@@ -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);

+1 −1
Original line number Diff line number Diff line
@@ -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);

+1 −1
Original line number Diff line number Diff line
@@ -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);

Loading