// SPDX-License-Identifier: GPL-2.0 // // Spreadtrum clock infrastructure // // Copyright (C) 2017 Spreadtrum, Inc. // Author: Chunyan Zhang <chunyan.zhang@spreadtrum.com> #ifndef _SPRD_CLK_COMMON_H_ #define _SPRD_CLK_COMMON_H_ #include <linux/clk-provider.h> #include <linux/of_platform.h> #include <linux/regmap.h> struct device_node; struct sprd_clk_common { struct regmap *regmap; u32 reg; struct clk_hw hw; }; struct sprd_clk_desc { struct sprd_clk_common **clk_clks; unsigned long num_clk_clks; struct clk_hw_onecell_data *hw_clks; };
static inline struct sprd_clk_common * hw_to_sprd_clk_common(const struct clk_hw *hw) { return container_of(hw, struct sprd_clk_common, hw); }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Chunyan Zhang | 26 | 100.00% | 1 | 100.00% |
Total | 26 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Chunyan Zhang | 119 | 100.00% | 1 | 100.00% |
Total | 119 | 100.00% | 1 | 100.00% |