Commit 9a01be17 authored by Linus Walleij's avatar Linus Walleij

pinctrl: split pincontrol states into its own header

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: default avatarStephen Warren <swarren@wwwdotorg.org>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 872acc32
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
#include <linux/err.h> #include <linux/err.h>
#include <linux/list.h> #include <linux/list.h>
#include <linux/seq_file.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 */ /* This struct is private to the core and should be regarded as a cookie */
struct pinctrl; struct pinctrl;
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
#ifndef __LINUX_PINCTRL_MACHINE_H #ifndef __LINUX_PINCTRL_MACHINE_H
#define __LINUX_PINCTRL_MACHINE_H #define __LINUX_PINCTRL_MACHINE_H
#include "pinctrl.h" #include "pinctrl-state.h"
enum pinctrl_map_type { enum pinctrl_map_type {
PIN_MAP_TYPE_INVALID, PIN_MAP_TYPE_INVALID,
......
/*
* Standard pin control state definitions
*/
#define PINCTRL_STATE_DEFAULT "default"
#define PINCTRL_STATE_IDLE "idle"
...@@ -17,8 +17,7 @@ ...@@ -17,8 +17,7 @@
#include <linux/radix-tree.h> #include <linux/radix-tree.h>
#include <linux/list.h> #include <linux/list.h>
#include <linux/seq_file.h> #include <linux/seq_file.h>
#include "pinctrl-state.h"
#define PINCTRL_STATE_DEFAULT "default"
struct pinctrl_dev; struct pinctrl_dev;
struct pinmux_ops; struct pinmux_ops;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment