drivers/clk/actions/owl-common.h

Source file repositories/reference/linux-study-clean/drivers/clk/actions/owl-common.h

File Facts

System
Linux kernel
Corpus path
drivers/clk/actions/owl-common.h
Extension
.h
Size
1034 bytes
Lines
45
Domain
Driver Families
Bucket
drivers/clk
Inferred role
Driver Families: implementation source
Status
source implementation candidate

Why This File Exists

Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.

Dependency Surface

Detected Declarations

Annotated Snippet

struct owl_clk_common {
	struct regmap			*regmap;
	struct clk_hw			hw;
};

struct owl_clk_desc {
	struct owl_clk_common		**clks;
	unsigned long			num_clks;
	struct clk_hw_onecell_data	*hw_clks;
	const struct owl_reset_map	*resets;
	unsigned long			num_resets;
	struct regmap			*regmap;
};

static inline struct owl_clk_common *
	hw_to_owl_clk_common(struct clk_hw *hw)
{
	return container_of(hw, struct owl_clk_common, hw);
}

int owl_clk_regmap_init(struct platform_device *pdev,
			struct owl_clk_desc *desc);
int owl_clk_probe(struct device *dev, struct clk_hw_onecell_data *hw_clks);

#endif /* _OWL_COMMON_H_ */

Annotation

Implementation Notes