aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/reset.h
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2017-10-29 01:50:08 +0900
committerPhilipp Zabel <p.zabel@pengutronix.de>2017-11-27 09:16:40 +0100
commitdfc1d9b24719b13164cc4fdc328c0b3e422cac42 (patch)
treea14a29aff96e23ed767ed08761ba41a3d1d1b287 /include/linux/reset.h
parentreset: remove remaining WARN_ON() in <linux/reset.h> (diff)
downloadlinux-dev-dfc1d9b24719b13164cc4fdc328c0b3e422cac42.tar.xz
linux-dev-dfc1d9b24719b13164cc4fdc328c0b3e422cac42.zip
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.h4
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 @@
#ifndef _LINUX_RESET_H_
#define _LINUX_RESET_H_
-#include <linux/device.h>
+#include <linux/types.h>
+struct device;
+struct device_node;
struct reset_control;
#ifdef CONFIG_RESET_CONTROLLER