cregit-Linux how code gets into the kernel

Release 4.18 include/linux/of_clk.h

Directory: include/linux
/* SPDX-License-Identifier: GPL-2.0 */
/*
 * OF clock helpers
 */

#ifndef __LINUX_OF_CLK_H

#define __LINUX_OF_CLK_H

#if defined(CONFIG_COMMON_CLK) && defined(CONFIG_OF)

unsigned int of_clk_get_parent_count(struct device_node *np);
const char *of_clk_get_parent_name(struct device_node *np, int index);
void of_clk_init(const struct of_device_id *matches);

#else /* !CONFIG_COMMON_CLK || !CONFIG_OF */


static inline unsigned int of_clk_get_parent_count(struct device_node *np) { return 0; }

Contributors

PersonTokensPropCommitsCommitProp
Geert Uytterhoeven16100.00%1100.00%
Total16100.00%1100.00%


static inline const char *of_clk_get_parent_name(struct device_node *np, int index) { return NULL; }

Contributors

PersonTokensPropCommitsCommitProp
Geert Uytterhoeven20100.00%1100.00%
Total20100.00%1100.00%


static inline void of_clk_init(const struct of_device_id *matches) {}

Contributors

PersonTokensPropCommitsCommitProp
Geert Uytterhoeven12100.00%1100.00%
Total12100.00%1100.00%

#endif /* !CONFIG_COMMON_CLK || !CONFIG_OF */ #endif /* __LINUX_OF_CLK_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
Geert Uytterhoeven110100.00%1100.00%
Total110100.00%1100.00%
Directory: include/linux
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.