diff mbox series

gpio: max730x: Use the right include

Message ID 20210820225821.103070-1-linus.walleij@linaro.org
State Accepted
Commit e5e26d80840b69c1bcea4f5b0cb7ed4026a8f6a3
Headers show
Series gpio: max730x: Use the right include | expand

Commit Message

Linus Walleij Aug. 20, 2021, 10:58 p.m. UTC
<linux/spi/max7301.h> despite the placement of the header, is
used by drivers/gpio/gpio-max730*.

The include needs struct gpio_chip and needs to include
<linux/gpio/driver.h> not the legacy <linux/gpio.h> include.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
 include/linux/spi/max7301.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.31.1

Comments

Bartosz Golaszewski Aug. 23, 2021, 7:56 a.m. UTC | #1
On Sat, Aug 21, 2021 at 1:00 AM Linus Walleij <linus.walleij@linaro.org> wrote:
>

> <linux/spi/max7301.h> despite the placement of the header, is

> used by drivers/gpio/gpio-max730*.

>

> The include needs struct gpio_chip and needs to include

> <linux/gpio/driver.h> not the legacy <linux/gpio.h> include.

>

> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

> ---

>  include/linux/spi/max7301.h | 2 +-

>  1 file changed, 1 insertion(+), 1 deletion(-)

>

> diff --git a/include/linux/spi/max7301.h b/include/linux/spi/max7301.h

> index 433c20e2f46e..21449067aedb 100644

> --- a/include/linux/spi/max7301.h

> +++ b/include/linux/spi/max7301.h

> @@ -2,7 +2,7 @@

>  #ifndef LINUX_SPI_MAX7301_H

>  #define LINUX_SPI_MAX7301_H

>

> -#include <linux/gpio.h>

> +#include <linux/gpio/driver.h>

>

>  /*

>   * Some registers must be read back to modify.

> --

> 2.31.1

>


Applied, thanks!

Bartosz
diff mbox series

Patch

diff --git a/include/linux/spi/max7301.h b/include/linux/spi/max7301.h
index 433c20e2f46e..21449067aedb 100644
--- a/include/linux/spi/max7301.h
+++ b/include/linux/spi/max7301.h
@@ -2,7 +2,7 @@ 
 #ifndef LINUX_SPI_MAX7301_H
 #define LINUX_SPI_MAX7301_H
 
-#include <linux/gpio.h>
+#include <linux/gpio/driver.h>
 
 /*
  * Some registers must be read back to modify.