]> git.karo-electronics.de Git - linux-beck.git/commitdiff
pinctrl: split pincontrol states into its own header
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 6 Mar 2012 20:15:51 +0000 (21:15 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 6 Mar 2012 22:08:19 +0000 (23:08 +0100)
Move the pin control state defines into its own header file,
since it is used both by machine.h which is facing the platform
and by consumer.h which is facing the drivers, and pinctrl.h
which is pinctrl-driver internal, let's not have each and every
.h file include all others, then isolation is moot.

Acked-by: Stephen Warren <swarren@wwwdotorg.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
include/linux/pinctrl/consumer.h
include/linux/pinctrl/machine.h
include/linux/pinctrl/pinctrl-state.h [new file with mode: 0644]
include/linux/pinctrl/pinctrl.h

index 9ad5896cfa0ea74ca2e85fbd0048105bfdc5f2ed..191e7268848170ad2a8889ba4c0a559860c75fa0 100644 (file)
@@ -15,7 +15,7 @@
 #include <linux/err.h>
 #include <linux/list.h>
 #include <linux/seq_file.h>
-#include "pinctrl.h"
+#include "pinctrl-state.h"
 
 /* This struct is private to the core and should be regarded as a cookie */
 struct pinctrl;
index 3fd2f9dfc645f7210c153104a760b01c33724036..fee4349364f77ed971fac838bf95391e0097f585 100644 (file)
@@ -12,7 +12,7 @@
 #ifndef __LINUX_PINCTRL_MACHINE_H
 #define __LINUX_PINCTRL_MACHINE_H
 
-#include "pinctrl.h"
+#include "pinctrl-state.h"
 
 enum pinctrl_map_type {
        PIN_MAP_TYPE_INVALID,
diff --git a/include/linux/pinctrl/pinctrl-state.h b/include/linux/pinctrl/pinctrl-state.h
new file mode 100644 (file)
index 0000000..3920e28
--- /dev/null
@@ -0,0 +1,6 @@
+/*
+ * Standard pin control state definitions
+ */
+
+#define PINCTRL_STATE_DEFAULT "default"
+#define PINCTRL_STATE_IDLE "idle"
index bbdd7e16bada54179799e7cda4d1716037aba505..e9e94eb52d79a8fc284cb52a8c4bbe09b31f4625 100644 (file)
@@ -17,8 +17,7 @@
 #include <linux/radix-tree.h>
 #include <linux/list.h>
 #include <linux/seq_file.h>
-
-#define PINCTRL_STATE_DEFAULT "default"
+#include "pinctrl-state.h"
 
 struct pinctrl_dev;
 struct pinmux_ops;