io_uring/cmd: add cmd lazy tw wake helper
[linux-block.git] / include / linux / of_clk.h
CommitLineData
eb06d6bb
GU
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * OF clock helpers
4 */
5
6#ifndef __LINUX_OF_CLK_H
7#define __LINUX_OF_CLK_H
8
5df86714
GU
9struct device_node;
10struct of_device_id;
11
eb06d6bb
GU
12#if defined(CONFIG_COMMON_CLK) && defined(CONFIG_OF)
13
4a4472fd
GU
14unsigned int of_clk_get_parent_count(const struct device_node *np);
15const char *of_clk_get_parent_name(const struct device_node *np, int index);
eb06d6bb
GU
16void of_clk_init(const struct of_device_id *matches);
17
18#else /* !CONFIG_COMMON_CLK || !CONFIG_OF */
19
4a4472fd 20static inline unsigned int of_clk_get_parent_count(const struct device_node *np)
eb06d6bb
GU
21{
22 return 0;
23}
4a4472fd 24static inline const char *of_clk_get_parent_name(const struct device_node *np,
eb06d6bb
GU
25 int index)
26{
27 return NULL;
28}
29static inline void of_clk_init(const struct of_device_id *matches) {}
30
31#endif /* !CONFIG_COMMON_CLK || !CONFIG_OF */
32
33#endif /* __LINUX_OF_CLK_H */