alistair23-linux/drivers/gpu/drm/fsl-dcu
Boris Brezillon 5fa8e4a221 drm/panel: Make of_drm_find_panel() return an ERR_PTR() instead of NULL
Right now, the DRM panel logic returns NULL when a panel pointing to
the passed OF node is not present in the list of registered panels.

Most drivers interpret this NULL value as -EPROBE_DEFER, but we are
about to modify the semantic of of_drm_find_panel() and let the
framework return -ENODEV when the device node we're pointing to has
a status property that is not equal to "okay" or "ok".

Let's first patch the of_drm_find_panel() implementation to return
ERR_PTR(-EPROBE_DEFER) instead of NULL and patch all callers to replace
the '!panel' check by an 'IS_ERR(panel)' one.

Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180509130042.9435-2-boris.brezillon@bootlin.com
2018-07-10 17:59:05 +02:00
..
fsl_dcu_drm_crtc.c drm: Add old state pointer to CRTC .enable() helper function 2017-06-30 14:53:14 +02:00
fsl_dcu_drm_crtc.h
fsl_dcu_drm_drv.c drm/fsl-dcu: Use drm_mode_config_helper_suspend/resume() 2017-12-05 13:46:41 +01:00
fsl_dcu_drm_drv.h drm/fsl-dcu: Use drm_mode_config_helper_suspend/resume() 2017-12-05 13:46:41 +01:00
fsl_dcu_drm_kms.c drm/fsl-dcu: Use drm_gem_fb_create() 2017-10-01 17:00:20 +02:00
fsl_dcu_drm_output.h drm/fsl-dcu: rework codes to support of_graph dt binding for panel 2016-07-15 18:06:28 -07:00
fsl_dcu_drm_plane.c drm: Plumb modifiers through plane init 2017-08-01 17:50:06 +01:00
fsl_dcu_drm_plane.h drm/fsl-dcu: move layer initialization to plane file 2016-06-18 18:34:22 -07:00
fsl_dcu_drm_rgb.c drm/panel: Make of_drm_find_panel() return an ERR_PTR() instead of NULL 2018-07-10 17:59:05 +02:00
fsl_tcon.c drm/fsl-dcu: check for clk_prepare_enable() error 2017-02-07 20:28:04 -08:00
fsl_tcon.h drm/fsl-dcu: add TCON driver 2016-04-25 20:27:18 -07:00
Kconfig drm/fsl-dcu: make fbdev support really optional 2016-07-18 09:11:39 +02:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00