mirror of https://gitee.com/openkylin/linux.git
02f17ffd34
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> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
hwa742.c | ||
lcd_ams_delta.c | ||
lcd_h3.c | ||
lcd_htcherald.c | ||
lcd_inn1510.c | ||
lcd_inn1610.c | ||
lcd_mipid.c | ||
lcd_osk.c | ||
lcd_palmte.c | ||
lcd_palmtt.c | ||
lcd_palmz71.c | ||
lcdc.c | ||
lcdc.h | ||
omapfb.h | ||
omapfb_main.c | ||
sossi.c |