diff mbox series

pinctrl: add include guard to pinctrl-state.h

Message ID 20190609144313.4842-1-yamada.masahiro@socionext.com
State Accepted
Commit f652e66fcca07e59f207bcca27c5566193feabd5
Headers show
Series pinctrl: add include guard to pinctrl-state.h | expand

Commit Message

Masahiro Yamada June 9, 2019, 2:43 p.m. UTC
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>

---

 include/linux/pinctrl/pinctrl-state.h | 5 +++++
 1 file changed, 5 insertions(+)

-- 
2.17.1

Comments

Linus Walleij June 9, 2019, 2:53 p.m. UTC | #1
On Sun, Jun 9, 2019 at 4:43 PM Masahiro Yamada
<yamada.masahiro@socionext.com> wrote:

> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>


Patch applied.

Yours,
Linus Walleij
diff mbox series

Patch

diff --git a/include/linux/pinctrl/pinctrl-state.h b/include/linux/pinctrl/pinctrl-state.h
index a0e785815a64..635d97e9285e 100644
--- a/include/linux/pinctrl/pinctrl-state.h
+++ b/include/linux/pinctrl/pinctrl-state.h
@@ -3,6 +3,9 @@ 
  * Standard pin control state definitions
  */
 
+#ifndef __LINUX_PINCTRL_PINCTRL_STATE_H
+#define __LINUX_PINCTRL_PINCTRL_STATE_H
+
 /**
  * @PINCTRL_STATE_DEFAULT: the state the pinctrl handle shall be put
  *	into as default, usually this means the pins are up and ready to
@@ -31,3 +34,5 @@ 
 #define PINCTRL_STATE_INIT "init"
 #define PINCTRL_STATE_IDLE "idle"
 #define PINCTRL_STATE_SLEEP "sleep"
+
+#endif /* __LINUX_PINCTRL_PINCTRL_STATE_H */