瀏覽代碼

reset: minimize the number of headers included from <linux/reset.h>

Commit 62e24c5775ec ("reset: add exported __reset_control_get, return
NULL if optional") moved the dev->of_node reference to core.c, so
<linux/reset.h> does not need to know the members of struct device.
Declaring device and device_node as structure is enough.

<linux/types.h> is necessary for bool, true, and false.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Masahiro Yamada 7 年之前
父節點
當前提交
dfc1d9b247
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      include/linux/reset.h

+ 3 - 1
include/linux/reset.h

@@ -2,8 +2,10 @@
 #ifndef _LINUX_RESET_H_
 #ifndef _LINUX_RESET_H_
 #define _LINUX_RESET_H_
 #define _LINUX_RESET_H_
 
 
-#include <linux/device.h>
+#include <linux/types.h>
 
 
+struct device;
+struct device_node;
 struct reset_control;
 struct reset_control;
 
 
 #ifdef CONFIG_RESET_CONTROLLER
 #ifdef CONFIG_RESET_CONTROLLER