]> Git Repo - linux.git/commitdiff
fbdev: ssd1307fb: include linux/gpio/consumer.h
authorArnd Bergmann <[email protected]>
Mon, 20 Feb 2017 12:51:07 +0000 (13:51 +0100)
committerBartlomiej Zolnierkiewicz <[email protected]>
Mon, 20 Feb 2017 12:51:07 +0000 (13:51 +0100)
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")
Cc: Tomi Valkeinen <[email protected]>
Cc: Jyri Sarha <[email protected]>
Cc: LABBE Corentin <[email protected]>
Signed-off-by: Arnd Bergmann <[email protected]>
Signed-off-by: Bartlomiej Zolnierkiewicz <[email protected]>
drivers/video/fbdev/ssd1307fb.c

index 5c87ae4bac6a26cab5857a03c9990ef1db153e70..bd017b57c47f8af4ff1558cedaa8589a5f0ce9ff 100644 (file)
@@ -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>
This page took 0.062719 seconds and 4 git commands to generate.