drm/nouveau: fix kernel-doc comments
[drm/drm-misc.git] / drivers / cpuidle / dt_idle_genpd.h
blob3be1f70f55b5c81b89ae69ac8d188e2ca743f2d6
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __DT_IDLE_GENPD
3 #define __DT_IDLE_GENPD
5 struct device_node;
6 struct generic_pm_domain;
8 #ifdef CONFIG_DT_IDLE_GENPD
10 void dt_idle_pd_free(struct generic_pm_domain *pd);
12 struct generic_pm_domain *dt_idle_pd_alloc(struct device_node *np,
13 int (*parse_state)(struct device_node *, u32 *));
15 int dt_idle_pd_init_topology(struct device_node *np);
17 int dt_idle_pd_remove_topology(struct device_node *np);
19 struct device *dt_idle_attach_cpu(int cpu, const char *name);
21 void dt_idle_detach_cpu(struct device *dev);
23 #else
25 static inline void dt_idle_pd_free(struct generic_pm_domain *pd)
29 static inline struct generic_pm_domain *dt_idle_pd_alloc(
30 struct device_node *np,
31 int (*parse_state)(struct device_node *, u32 *))
33 return NULL;
36 static inline int dt_idle_pd_init_topology(struct device_node *np)
38 return 0;
41 static inline int dt_idle_pd_remove_topology(struct device_node *np)
43 return 0;
46 static inline struct device *dt_idle_attach_cpu(int cpu, const char *name)
48 return NULL;
51 static inline void dt_idle_detach_cpu(struct device *dev)
55 #endif
57 #endif