[Intel-gfx] [RFC v2 1/4] drm: Add support to find drm_panel by name

2015-01-16 Thread Thierry Reding
On Tue, Jan 13, 2015 at 12:08:11AM +0100, Daniel Vetter wrote: > On Fri, Jan 9, 2015 at 1:50 PM, Jani Nikula wrote: > > I have a slightly uneasy feeling about handing out drm_panel pointers > > (both from here and of_drm_find_panel) without refcounting. If the panel > > driver gets removed, whoeve

[Intel-gfx] [RFC v2 1/4] drm: Add support to find drm_panel by name

2015-01-13 Thread Andrzej Hajda
On 01/13/2015 12:08 AM, Daniel Vetter wrote: > On Fri, Jan 9, 2015 at 1:50 PM, Jani Nikula wrote: >> I have a slightly uneasy feeling about handing out drm_panel pointers >> (both from here and of_drm_find_panel) without refcounting. If the panel >> driver gets removed, whoever called the find fun

[Intel-gfx] [RFC v2 1/4] drm: Add support to find drm_panel by name

2015-01-13 Thread Daniel Vetter
On Fri, Jan 9, 2015 at 1:50 PM, Jani Nikula wrote: > I have a slightly uneasy feeling about handing out drm_panel pointers > (both from here and of_drm_find_panel) without refcounting. If the panel > driver gets removed, whoever called the find functions will have a > dangling pointer. I supposed