gpio: max730x: Use the right include
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 20 Aug 2021 22:58:21 +0000 (00:58 +0200)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 23 Aug 2021 07:55:53 +0000 (09:55 +0200)
<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>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
include/linux/spi/max7301.h

index 433c20e2f46ef9e6b5cc5f5db4d10237e8d7f96b..21449067aedb5e049b2f31367f2bda53cae141e0 100644 (file)
@@ -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.