projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a29355
)
gpio: max730x: Use the right include
author
Linus Walleij
<linus.walleij@linaro.org>
Fri, 20 Aug 2021 22:58:21 +0000
(
00:58
+0200)
committer
Bartosz 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
patch
|
blob
|
history
diff --git
a/include/linux/spi/max7301.h
b/include/linux/spi/max7301.h
index 433c20e2f46ef9e6b5cc5f5db4d10237e8d7f96b..21449067aedb5e049b2f31367f2bda53cae141e0 100644
(file)
--- 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.