diff mbox

input: gpio_keys: add missing include to gpio_keys.h

Message ID 20180627073458.GA27800@localhost.localdomain (mailing list archive)
State Accepted
Headers show

Commit Message

Vaittinen, Matti June 27, 2018, 7:34 a.m. UTC
gpio_keys.h uses 'bool' - type which is defined in linux/types.h.
Include this header.

Signed-off-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
---
 include/linux/gpio_keys.h | 2 ++
 1 file changed, 2 insertions(+)

Comments

Dmitry Torokhov July 18, 2018, 4:48 p.m. UTC | #1
On Wed, Jun 27, 2018 at 10:34:58AM +0300, Matti Vaittinen wrote:
> gpio_keys.h uses 'bool' - type which is defined in linux/types.h.
> Include this header.
> 
> Signed-off-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>

Applied, thank you.

> ---
>  include/linux/gpio_keys.h | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/include/linux/gpio_keys.h b/include/linux/gpio_keys.h
> index 7160df54a6fe..3f84aeb81e48 100644
> --- a/include/linux/gpio_keys.h
> +++ b/include/linux/gpio_keys.h
> @@ -2,6 +2,8 @@
>  #ifndef _GPIO_KEYS_H
>  #define _GPIO_KEYS_H
>  
> +#include <linux/types.h>
> +
>  struct device;
>  
>  /**
> -- 
> 2.14.3
>
diff mbox

Patch

diff --git a/include/linux/gpio_keys.h b/include/linux/gpio_keys.h
index 7160df54a6fe..3f84aeb81e48 100644
--- a/include/linux/gpio_keys.h
+++ b/include/linux/gpio_keys.h
@@ -2,6 +2,8 @@ 
 #ifndef _GPIO_KEYS_H
 #define _GPIO_KEYS_H
 
+#include <linux/types.h>
+
 struct device;
 
 /**