OpenCloudOS-Kernel/drivers/gpu/drm/omapdrm/displays
Arnd Bergmann d0196c8d5d drm/omap: include gpio/consumer.h where needed
A lot of the display drivers for OMAP use the gpio descriptor functions
that are only available in linux/gpio.h if GPIOLIB is enabled and
otherwise produce a build error:

drivers/gpu/drm/omapdrm/displays/encoder-opa362.c: In function 'opa362_enable':
drivers/gpu/drm/omapdrm/displays/encoder-opa362.c:101:3: error: implicit declaration of function 'gpiod_set_value_cansleep' [-Werror=implicit-function-declaration]
drivers/gpu/drm/omapdrm/displays/panel-dpi.c: In function 'panel_dpi_probe_pdata':
drivers/gpu/drm/omapdrm/displays/panel-dpi.c:189:23: error: implicit declaration of function 'gpio_to_desc' [-Werror=implicit-function-declaration]
drivers/gpu/drm/omapdrm/displays/panel-sharp-ls037v7dw01.c: In function 'sharp_ls_enable':
drivers/gpu/drm/omapdrm/displays/panel-sharp-ls037v7dw01.c:120:3: error: implicit declaration of function 'gpiod_set_value_cansleep' [-Werror=implicit-function-declaration]

This replaces the existing linux/gpio.h with linux/gpio/consumer.h
where needed. In case of panel-lgphilips-lb035q02.c however, we
also have to include linux/gpio.h to get the definition of gpio_is_valid
and gpio_set_value_cansleep that are used for the non-DT case.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
[tomi.valkeinen@ti.com: resolved conflicts]
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2016-05-31 08:30:14 +03:00
..
Kconfig drm/omap: make omapdrm select OMAP2_DSS 2015-12-29 11:07:48 +02:00
Makefile
connector-analog-tv.c
connector-dvi.c drm/omap: fix panel/encoder probes 2016-03-16 11:08:35 +10:00
connector-hdmi.c drm/omap: include gpio/consumer.h where needed 2016-05-31 08:30:14 +03:00
encoder-opa362.c drm/omap: include gpio/consumer.h where needed 2016-05-31 08:30:14 +03:00
encoder-tfp410.c drm/omap: include gpio/consumer.h where needed 2016-05-31 08:30:14 +03:00
encoder-tpd12s015.c drm/omap: tpd12s015: CT_CP_HPD as optional gpio 2016-03-03 17:36:41 +02:00
panel-dpi.c drm/omap: include gpio/consumer.h where needed 2016-05-31 08:30:14 +03:00
panel-dsi-cm.c drm/omap: include gpio/consumer.h where needed 2016-05-31 08:30:14 +03:00
panel-lgphilips-lb035q02.c drm/omap: Fix missing includes 2016-05-31 08:20:42 +03:00
panel-nec-nl8048hl11.c drm/omap: include gpio/consumer.h where needed 2016-05-31 08:30:14 +03:00
panel-sharp-ls037v7dw01.c drm/omap: include gpio/consumer.h where needed 2016-05-31 08:30:14 +03:00
panel-sony-acx565akm.c drm/omap: include gpio/consumer.h where needed 2016-05-31 08:30:14 +03:00
panel-tpo-td028ttec1.c drm/omap: panel-tpo-td028ttec1: remove pdata support 2016-03-03 17:38:21 +02:00
panel-tpo-td043mtea1.c drm/omap: include gpio/consumer.h where needed 2016-05-31 08:30:14 +03:00