浏览代码

PM / Domains: Move struct pm_domain_data to pm_domain.h

The definition of the struct pm_domain_data better belongs in the
header for the PM domains, let's move it there.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Ulf Hansson 10 年之前
父节点
当前提交
00e7c29596
共有 2 个文件被更改,包括 6 次插入5 次删除
  1. 1 5
      include/linux/pm.h
  2. 5 0
      include/linux/pm_domain.h

+ 1 - 5
include/linux/pm.h

@@ -538,11 +538,7 @@ enum rpm_request {
 };
 
 struct wakeup_source;
-
-struct pm_domain_data {
-	struct list_head list_node;
-	struct device *dev;
-};
+struct pm_domain_data;
 
 struct pm_subsys_data {
 	spinlock_t lock;

+ 5 - 0
include/linux/pm_domain.h

@@ -98,6 +98,11 @@ struct gpd_timing_data {
 	bool cached_stop_ok;
 };
 
+struct pm_domain_data {
+	struct list_head list_node;
+	struct device *dev;
+};
+
 struct generic_pm_domain_data {
 	struct pm_domain_data base;
 	struct gpd_timing_data td;