1
0
Fork 0
alistair23-linux/drivers/video/fbdev/omap
Janusz Krzysztofik 02f17ffd34 video: fbdev: omapfb: lcd_ams_delta: use GPIO lookup table
Now as Amstrad Delta board - the only user of this driver - provides
GPIO lookup tables, switch from GPIO numbers to GPIO descriptors and
use the table to locate required GPIO pins.

Declare static variables for storing GPIO descriptors and replace
gpio_ function calls with their gpiod_ equivalents. Move GPIO lookup
to the driver probe function so device initialization can be deferred
instead of aborted if a GPIO pin is not yet available.

Pin naming used by the driver should be followed while respective GPIO
lookup table is initialized by a board init code.

Signed-off-by: Janusz Krzysztofik <jmkrzyszt@gmail.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Cc: Tony Lindgren <tony@atomide.com>
Cc: Aaro Koskinen <aaro.koskinen@iki.fi>
Cc: Boris Brezillon <boris.brezillon@bootlin.com>
Cc: Miquel Raynal <miquel.raynal@bootlin.com>
Cc: Richard Weinberger <richard@nod.at>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Brian Norris <computersforpeace@gmail.com>
Cc: Marek Vasut <marek.vasut@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
2018-10-08 12:57:36 +02:00
..
Kconfig video: omap/h3: fix tps65010 dependency 2015-05-27 12:54:47 +03:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
hwa742.c video: fbdev: Convert timers to use timer_setup() 2017-11-10 16:34:52 +01:00
lcd_ams_delta.c video: fbdev: omapfb: lcd_ams_delta: use GPIO lookup table 2018-10-08 12:57:36 +02:00
lcd_h3.c video/omap: add module license tags 2018-06-08 18:08:12 +02:00
lcd_htcherald.c video/omap: add module license tags 2018-06-08 18:08:12 +02:00
lcd_inn1510.c video/omap: add module license tags 2018-06-08 18:08:12 +02:00
lcd_inn1610.c video/omap: add module license tags 2018-06-08 18:08:12 +02:00
lcd_mipid.c drivers/video/fbdev/omap/lcd_mipid.c: add const to lcd_panel structure 2017-08-01 17:20:39 +02:00
lcd_osk.c video/omap: add module license tags 2018-06-08 18:08:12 +02:00
lcd_palmte.c video/omap: add module license tags 2018-06-08 18:08:12 +02:00
lcd_palmtt.c video/omap: add module license tags 2018-06-08 18:08:12 +02:00
lcd_palmz71.c video/omap: add module license tags 2018-06-08 18:08:12 +02:00
lcdc.c video: fbdev: omap: move inline before return type 2017-07-12 16:26:04 -07:00
lcdc.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
omapfb.h
omapfb_main.c fbdev: omapfb: off by one in omapfb_register_client() 2018-07-24 19:11:28 +02:00
sossi.c