diff options
| author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-10-28 12:50:08 -0400 |
|---|---|---|
| committer | Philipp Zabel <p.zabel@pengutronix.de> | 2017-11-27 03:16:40 -0500 |
| commit | dfc1d9b24719b13164cc4fdc328c0b3e422cac42 (patch) | |
| tree | a14a29aff96e23ed767ed08761ba41a3d1d1b287 /include/linux/reset.h | |
| parent | bb6c7768385b200063a14d6615cc1246c3d00760 (diff) | |
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>
Diffstat (limited to 'include/linux/reset.h')
| -rw-r--r-- | include/linux/reset.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/reset.h b/include/linux/reset.h index ed6fb0290797..e5d97ab4359c 100644 --- a/include/linux/reset.h +++ b/include/linux/reset.h | |||
| @@ -2,8 +2,10 @@ | |||
| 2 | #ifndef _LINUX_RESET_H_ | 2 | #ifndef _LINUX_RESET_H_ |
| 3 | #define _LINUX_RESET_H_ | 3 | #define _LINUX_RESET_H_ |
| 4 | 4 | ||
| 5 | #include <linux/device.h> | 5 | #include <linux/types.h> |
| 6 | 6 | ||
| 7 | struct device; | ||
| 8 | struct device_node; | ||
| 7 | struct reset_control; | 9 | struct reset_control; |
| 8 | 10 | ||
| 9 | #ifdef CONFIG_RESET_CONTROLLER | 11 | #ifdef CONFIG_RESET_CONTROLLER |
