Loading drivers/clk/clk.c +8 −7 Original line number Diff line number Diff line Loading @@ -278,7 +278,7 @@ const char *__clk_get_name(struct clk *clk) } EXPORT_SYMBOL_GPL(__clk_get_name); const char *clk_hw_get_name(struct clk_hw *hw) const char *clk_hw_get_name(const struct clk_hw *hw) { return hw->core->name; } Loading @@ -290,13 +290,13 @@ struct clk_hw *__clk_get_hw(struct clk *clk) } EXPORT_SYMBOL_GPL(__clk_get_hw); unsigned int clk_hw_get_num_parents(struct clk_hw *hw) unsigned int clk_hw_get_num_parents(const struct clk_hw *hw) { return hw->core->num_parents; } EXPORT_SYMBOL_GPL(clk_hw_get_num_parents); struct clk_hw *clk_hw_get_parent(struct clk_hw *hw) struct clk_hw *clk_hw_get_parent(const struct clk_hw *hw) { return hw->core->parent ? hw->core->parent->hw : NULL; } Loading Loading @@ -359,7 +359,8 @@ static struct clk_core *clk_core_get_parent_by_index(struct clk_core *core, return core->parents[index]; } struct clk_hw *clk_hw_get_parent_by_index(struct clk_hw *hw, unsigned int index) struct clk_hw * clk_hw_get_parent_by_index(const struct clk_hw *hw, unsigned int index) { struct clk_core *parent; Loading Loading @@ -395,7 +396,7 @@ static unsigned long clk_core_get_rate_nolock(struct clk_core *core) return ret; } unsigned long clk_hw_get_rate(struct clk_hw *hw) unsigned long clk_hw_get_rate(const struct clk_hw *hw) { return clk_core_get_rate_nolock(hw->core); } Loading @@ -415,13 +416,13 @@ unsigned long __clk_get_flags(struct clk *clk) } EXPORT_SYMBOL_GPL(__clk_get_flags); unsigned long clk_hw_get_flags(struct clk_hw *hw) unsigned long clk_hw_get_flags(const struct clk_hw *hw) { return hw->core->flags; } EXPORT_SYMBOL_GPL(clk_hw_get_flags); bool clk_hw_is_prepared(struct clk_hw *hw) bool clk_hw_is_prepared(const struct clk_hw *hw) { return clk_core_is_prepared(hw->core); } Loading include/linux/clk-provider.h +7 −7 Original line number Diff line number Diff line Loading @@ -607,17 +607,17 @@ void devm_clk_unregister(struct device *dev, struct clk *clk); /* helper functions */ const char *__clk_get_name(struct clk *clk); const char *clk_hw_get_name(struct clk_hw *hw); const char *clk_hw_get_name(const struct clk_hw *hw); struct clk_hw *__clk_get_hw(struct clk *clk); unsigned int clk_hw_get_num_parents(struct clk_hw *hw); struct clk_hw *clk_hw_get_parent(struct clk_hw *hw); struct clk_hw *clk_hw_get_parent_by_index(struct clk_hw *hw, unsigned int clk_hw_get_num_parents(const struct clk_hw *hw); struct clk_hw *clk_hw_get_parent(const struct clk_hw *hw); struct clk_hw *clk_hw_get_parent_by_index(const struct clk_hw *hw, unsigned int index); unsigned int __clk_get_enable_count(struct clk *clk); unsigned long clk_hw_get_rate(struct clk_hw *hw); unsigned long clk_hw_get_rate(const struct clk_hw *hw); unsigned long __clk_get_flags(struct clk *clk); unsigned long clk_hw_get_flags(struct clk_hw *hw); bool clk_hw_is_prepared(struct clk_hw *hw); unsigned long clk_hw_get_flags(const struct clk_hw *hw); bool clk_hw_is_prepared(const struct clk_hw *hw); bool __clk_is_enabled(struct clk *clk); struct clk *__clk_lookup(const char *name); int __clk_mux_determine_rate(struct clk_hw *hw, Loading Loading
drivers/clk/clk.c +8 −7 Original line number Diff line number Diff line Loading @@ -278,7 +278,7 @@ const char *__clk_get_name(struct clk *clk) } EXPORT_SYMBOL_GPL(__clk_get_name); const char *clk_hw_get_name(struct clk_hw *hw) const char *clk_hw_get_name(const struct clk_hw *hw) { return hw->core->name; } Loading @@ -290,13 +290,13 @@ struct clk_hw *__clk_get_hw(struct clk *clk) } EXPORT_SYMBOL_GPL(__clk_get_hw); unsigned int clk_hw_get_num_parents(struct clk_hw *hw) unsigned int clk_hw_get_num_parents(const struct clk_hw *hw) { return hw->core->num_parents; } EXPORT_SYMBOL_GPL(clk_hw_get_num_parents); struct clk_hw *clk_hw_get_parent(struct clk_hw *hw) struct clk_hw *clk_hw_get_parent(const struct clk_hw *hw) { return hw->core->parent ? hw->core->parent->hw : NULL; } Loading Loading @@ -359,7 +359,8 @@ static struct clk_core *clk_core_get_parent_by_index(struct clk_core *core, return core->parents[index]; } struct clk_hw *clk_hw_get_parent_by_index(struct clk_hw *hw, unsigned int index) struct clk_hw * clk_hw_get_parent_by_index(const struct clk_hw *hw, unsigned int index) { struct clk_core *parent; Loading Loading @@ -395,7 +396,7 @@ static unsigned long clk_core_get_rate_nolock(struct clk_core *core) return ret; } unsigned long clk_hw_get_rate(struct clk_hw *hw) unsigned long clk_hw_get_rate(const struct clk_hw *hw) { return clk_core_get_rate_nolock(hw->core); } Loading @@ -415,13 +416,13 @@ unsigned long __clk_get_flags(struct clk *clk) } EXPORT_SYMBOL_GPL(__clk_get_flags); unsigned long clk_hw_get_flags(struct clk_hw *hw) unsigned long clk_hw_get_flags(const struct clk_hw *hw) { return hw->core->flags; } EXPORT_SYMBOL_GPL(clk_hw_get_flags); bool clk_hw_is_prepared(struct clk_hw *hw) bool clk_hw_is_prepared(const struct clk_hw *hw) { return clk_core_is_prepared(hw->core); } Loading
include/linux/clk-provider.h +7 −7 Original line number Diff line number Diff line Loading @@ -607,17 +607,17 @@ void devm_clk_unregister(struct device *dev, struct clk *clk); /* helper functions */ const char *__clk_get_name(struct clk *clk); const char *clk_hw_get_name(struct clk_hw *hw); const char *clk_hw_get_name(const struct clk_hw *hw); struct clk_hw *__clk_get_hw(struct clk *clk); unsigned int clk_hw_get_num_parents(struct clk_hw *hw); struct clk_hw *clk_hw_get_parent(struct clk_hw *hw); struct clk_hw *clk_hw_get_parent_by_index(struct clk_hw *hw, unsigned int clk_hw_get_num_parents(const struct clk_hw *hw); struct clk_hw *clk_hw_get_parent(const struct clk_hw *hw); struct clk_hw *clk_hw_get_parent_by_index(const struct clk_hw *hw, unsigned int index); unsigned int __clk_get_enable_count(struct clk *clk); unsigned long clk_hw_get_rate(struct clk_hw *hw); unsigned long clk_hw_get_rate(const struct clk_hw *hw); unsigned long __clk_get_flags(struct clk *clk); unsigned long clk_hw_get_flags(struct clk_hw *hw); bool clk_hw_is_prepared(struct clk_hw *hw); unsigned long clk_hw_get_flags(const struct clk_hw *hw); bool clk_hw_is_prepared(const struct clk_hw *hw); bool __clk_is_enabled(struct clk *clk); struct clk *__clk_lookup(const char *name); int __clk_mux_determine_rate(struct clk_hw *hw, Loading