linux/drivers/gpu/drm/bridge
Geert Uytterhoeven db4d9159da drm/bridge: ptn3460: Include linux/gpio/consumer.h
commit dad3c35034 upstream.

If GPIOLIB=n and asm-generic/gpio.h is not used:

    drivers/gpu/drm/bridge/ptn3460.c: In function ‘ptn3460_pre_enable’:
    drivers/gpu/drm/bridge/ptn3460.c:135: error: implicit declaration of function ‘gpiod_set_value’
    drivers/gpu/drm/bridge/ptn3460.c: In function ‘ptn3460_probe’:
    drivers/gpu/drm/bridge/ptn3460.c:333: error: implicit declaration of function ‘devm_gpiod_get’
    drivers/gpu/drm/bridge/ptn3460.c:333: warning: assignment makes pointer from integer without a cast
    drivers/gpu/drm/bridge/ptn3460.c:340: error: implicit declaration of function ‘gpiod_direction_output’
    drivers/gpu/drm/bridge/ptn3460.c:346: warning: assignment makes pointer from integer without a cast

Add the missing #include <linux/gpio/consumer.h> to fix this.

Fixes: af478d8823 ("drm/bridge: ptn3460: use gpiod interface")
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: David Airlie <airlied@linux.ie>
Cc: dri-devel@lists.freedesktop.org
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2015-08-03 09:29:08 -07:00
..
dw_hdmi.c drm: bridge/dw_hdmi: separate VLEVCTRL settting into platform driver 2015-04-01 10:54:13 +01:00
dw_hdmi.h drm: bridge/dw_hdmi: add function dw_hdmi_phy_enable_spare 2015-01-07 18:31:59 +01:00
Kconfig drm/bridge: Add I2C based driver for ps8622/ps8625 bridge 2015-03-24 11:16:47 +01:00
Makefile drm/bridge: Add I2C based driver for ps8622/ps8625 bridge 2015-03-24 11:16:47 +01:00
ps8622.c drm/bridge: ps8622: Fix sparse warnings 2015-03-24 11:16:48 +01:00
ptn3460.c drm/bridge: ptn3460: Include linux/gpio/consumer.h 2015-08-03 09:29:08 -07:00