Skip to contentSkip to conversation

fbdev: ssd1307fb: include linux/gpio/consumer.h

PATCH Applied Arnd Bergmann 2 participants 2 messages Feb 17, 2017 – Feb 20, 2017 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fbdev: ssd1307fb: include linux/gpio/consumer.h

Changing this driver to the gpiod API requires the use of the new-style header, depending on the configuration:

drivers/video/fbdev/ssd1307fb.c: In function 'ssd1307fb_probe':
drivers/video/fbdev/ssd1307fb.c:569:15: error: implicit declaration of function 'devm_gpiod_get_optional';did you mean 'devm_regulator_get_optional'? [-Werror=implicit-function-declaration] drivers/video/fbdev/ssd1307fb.c:570:11: error: 'GPIOD_OUT_LOW' undeclared (first use in this function)

Fixes 72db33355c14 ("fbdev: ssd1307fb: Start to use gpiod API for reset gpio")
---
 drivers/video/fbdev/ssd1307fb.c | 1 +
 1 file changed, 1 insertion(+)
drivers/video/fbdev/ssd1307fb.c +1 -0
index 5c87ae4bac6a..bd017b57c47f 100644
@@ -9,6 +9,7 @@
 #include <linux/backlight.h>
 #include <linux/delay.h>
 #include <linux/fb.h>
+#include <linux/gpio/consumer.h>
 #include <linux/i2c.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
Signature · 1 line
2.9.0
#1 lore raw

Hi,

Quoted 9 lines · Arnd Bergmann

Changing this driver to the gpiod API requires the use of the new-style header, depending on the configuration:

drivers/video/fbdev/ssd1307fb.c: In function 'ssd1307fb_probe':
drivers/video/fbdev/ssd1307fb.c:569:15: error: implicit declaration of function 'devm_gpiod_get_optional';did you mean 'devm_regulator_get_optional'? [-Werror=implicit-function-declaration] drivers/video/fbdev/ssd1307fb.c:570:11: error: 'GPIOD_OUT_LOW' undeclared (first use in this function)

Fixes 72db33355c14 ("fbdev: ssd1307fb: Start to use gpiod API for reset gpio")

Applied, thanks for fixing this.

Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics