linux/drivers/gpu/drm/msm/dsi
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
..
phy drm/msm/dsi: implement auto PHY timing calculator for 10nm PHY 2018-06-03 16:48:59 -04:00
pll drm/msm/dsi: Populate PLL 10nm clock ops 2018-02-20 10:41:20 -05:00
dsi_cfg.c drm/msm/dsi: Add SDM845 in dsi_cfg 2018-02-20 10:41:21 -05:00
dsi_cfg.h drm/msm/dsi: Add SDM845 in dsi_cfg 2018-02-20 10:41:21 -05:00
dsi_host.c drm/panel: Make of_drm_find_panel() return an ERR_PTR() instead of NULL 2018-07-10 17:59:05 +02:00
dsi_manager.c drm/msm: Use drm_connector_has_possible_encoder() 2018-07-05 16:52:08 +03:00
dsi.c drm/msm/dsi: Fix potential NULL pointer dereference in msm_dsi_modeset_init 2018-03-19 06:33:34 -04:00
dsi.h drm/msm/dsi: Add skeleton 10nm PHY/PLL code 2018-02-20 10:41:20 -05:00
dsi.xml.h drm/msm/dsi: Update generated headers for 10nm PLL/PHY 2018-02-20 10:41:20 -05:00
mmss_cc.xml.h drm/msm: update generated headers 2017-06-16 11:16:07 -04:00
sfpb.xml.h drm/msm: update generated headers 2017-06-16 11:16:07 -04:00