[PATCH v2 2/6] drm/panel: Make of_drm_find_panel() return an ERR_PTR() instead of NULL

2018-05-03 Thread Boris Brezillon
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

Re: [PATCH v2 2/6] drm/panel: Make of_drm_find_panel() return an ERR_PTR() instead of NULL

2018-05-04 Thread Thierry Reding
On Thu, May 03, 2018 at 06:40:05PM +0200, Boris Brezillon wrote: > 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 th

Re: [PATCH v2 2/6] drm/panel: Make of_drm_find_panel() return an ERR_PTR() instead of NULL

2018-05-04 Thread Boris Brezillon
Hi Thierry, On Fri, 4 May 2018 12:18:52 +0200 Thierry Reding wrote: > On Thu, May 03, 2018 at 06:40:05PM +0200, Boris Brezillon wrote: > > 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 dr

Re: [PATCH v2 2/6] drm/panel: Make of_drm_find_panel() return an ERR_PTR() instead of NULL

2018-05-04 Thread Thierry Reding
On Fri, May 04, 2018 at 01:58:20PM +0200, Boris Brezillon wrote: > On Fri, 4 May 2018 12:18:52 +0200 Thierry Reding > wrote: > > On Thu, May 03, 2018 at 06:40:05PM +0200, Boris Brezillon wrote: [...] > > > return mdp4_lvds_connector->panel ? > > > connector_status_connected :