summaryrefslogtreecommitdiff
path: root/include/linux/spi
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2021-08-21 01:58:21 +0300
committerBartosz Golaszewski <bgolaszewski@baylibre.com>2021-08-23 10:55:53 +0300
commite5e26d80840b69c1bcea4f5b0cb7ed4026a8f6a3 (patch)
tree1675678d0a0b5c3d9505129a609dd0d72e00fe5a /include/linux/spi
parent3a29355a22c0275fe864100794fee58a73175d93 (diff)
downloadlinux-e5e26d80840b69c1bcea4f5b0cb7ed4026a8f6a3.tar.xz
gpio: max730x: Use the right include
<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>
Diffstat (limited to 'include/linux/spi')
-rw-r--r--include/linux/spi/max7301.h2
1 files changed, 1 insertions, 1 deletions
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.