iio: apds9960: Drop GPIO includes
diff mbox series

Message ID 20191202082452.62989-1-linus.walleij@linaro.org
State New
Headers show
Series
  • iio: apds9960: Drop GPIO includes
Related show

Commit Message

Linus Walleij Dec. 2, 2019, 8:24 a.m. UTC
The driver includes <linux/gpio.h> and <linux/of_gpio.h> yet
fails to use symbols from any of the include files, so drop
these includes.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
 drivers/iio/light/apds9960.c | 2 --
 1 file changed, 2 deletions(-)

Comments

Jonathan Cameron Dec. 7, 2019, 9:41 a.m. UTC | #1
On Mon,  2 Dec 2019 09:24:52 +0100
Linus Walleij <linus.walleij@linaro.org> wrote:

> The driver includes <linux/gpio.h> and <linux/of_gpio.h> yet
> fails to use symbols from any of the include files, so drop
> these includes.
> 
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Applied,

Thanks,

Jonathan

> ---
>  drivers/iio/light/apds9960.c | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/drivers/iio/light/apds9960.c b/drivers/iio/light/apds9960.c
> index c5dfb9a6b5a1..52f86bc777dd 100644
> --- a/drivers/iio/light/apds9960.c
> +++ b/drivers/iio/light/apds9960.c
> @@ -15,7 +15,6 @@
>  #include <linux/mutex.h>
>  #include <linux/err.h>
>  #include <linux/irq.h>
> -#include <linux/gpio.h>
>  #include <linux/i2c.h>
>  #include <linux/pm_runtime.h>
>  #include <linux/regmap.h>
> @@ -24,7 +23,6 @@
>  #include <linux/iio/events.h>
>  #include <linux/iio/kfifo_buf.h>
>  #include <linux/iio/sysfs.h>
> -#include <linux/of_gpio.h>
>  
>  #define APDS9960_REGMAP_NAME	"apds9960_regmap"
>  #define APDS9960_DRV_NAME	"apds9960"

Patch
diff mbox series

diff --git a/drivers/iio/light/apds9960.c b/drivers/iio/light/apds9960.c
index c5dfb9a6b5a1..52f86bc777dd 100644
--- a/drivers/iio/light/apds9960.c
+++ b/drivers/iio/light/apds9960.c
@@ -15,7 +15,6 @@ 
 #include <linux/mutex.h>
 #include <linux/err.h>
 #include <linux/irq.h>
-#include <linux/gpio.h>
 #include <linux/i2c.h>
 #include <linux/pm_runtime.h>
 #include <linux/regmap.h>
@@ -24,7 +23,6 @@ 
 #include <linux/iio/events.h>
 #include <linux/iio/kfifo_buf.h>
 #include <linux/iio/sysfs.h>
-#include <linux/of_gpio.h>
 
 #define APDS9960_REGMAP_NAME	"apds9960_regmap"
 #define APDS9960_DRV_NAME	"apds9960"