* [PATCH] iio: apds9960: Drop GPIO includes
@ 2019-12-02 8:24 Linus Walleij
2019-12-07 9:41 ` Jonathan Cameron
0 siblings, 1 reply; 2+ messages in thread
From: Linus Walleij @ 2019-12-02 8:24 UTC (permalink / raw)
To: Jonathan Cameron, linux-iio
Cc: Hartmut Knaack, Lars-Peter Clausen, Peter Meerwald-Stadler,
Linus Walleij
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(-)
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"
--
2.23.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] iio: apds9960: Drop GPIO includes
2019-12-02 8:24 [PATCH] iio: apds9960: Drop GPIO includes Linus Walleij
@ 2019-12-07 9:41 ` Jonathan Cameron
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Cameron @ 2019-12-07 9:41 UTC (permalink / raw)
To: Linus Walleij
Cc: linux-iio, Hartmut Knaack, Lars-Peter Clausen, Peter Meerwald-Stadler
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"
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-12-07 9:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-02 8:24 [PATCH] iio: apds9960: Drop GPIO includes Linus Walleij
2019-12-07 9:41 ` Jonathan Cameron
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).