[RFC 4/5] drm: Introduce drm_set_unique()

2014-04-23 Thread Thierry Reding
On Wed, Apr 23, 2014 at 10:40:57AM +0200, Daniel Vetter wrote: > On Wed, Apr 23, 2014 at 09:17:16AM +0200, Thierry Reding wrote: > > On Tue, Apr 22, 2014 at 05:48:07PM +0200, Daniel Vetter wrote: > > > On Tue, Apr 22, 2014 at 05:09:32PM +0200, Thierry Reding wrote: > > > > From: Thierry Reding > >

[RFC 4/5] drm: Introduce drm_set_unique()

2014-04-23 Thread David Herrmann
Hi On Wed, Apr 23, 2014 at 10:40 AM, Daniel Vetter wrote: > On Wed, Apr 23, 2014 at 09:17:16AM +0200, Thierry Reding wrote: >> On second thought, wouldn't this be better located in drm_stub.c? It >> isn't really related to the IOCTL code except that one of the IOCTLs now >> uses the information s

[RFC 4/5] drm: Introduce drm_set_unique()

2014-04-23 Thread Daniel Vetter
On Wed, Apr 23, 2014 at 09:17:16AM +0200, Thierry Reding wrote: > On Tue, Apr 22, 2014 at 05:48:07PM +0200, Daniel Vetter wrote: > > On Tue, Apr 22, 2014 at 05:09:32PM +0200, Thierry Reding wrote: > > > From: Thierry Reding > > > > > > Add a helper function that allows drivers to statically set t

[RFC 4/5] drm: Introduce drm_set_unique()

2014-04-23 Thread Thierry Reding
On Tue, Apr 22, 2014 at 05:48:07PM +0200, Daniel Vetter wrote: > On Tue, Apr 22, 2014 at 05:09:32PM +0200, Thierry Reding wrote: > > From: Thierry Reding > > > > Add a helper function that allows drivers to statically set the unique > > name of the device. This will allow platform and USB drivers

[RFC 4/5] drm: Introduce drm_set_unique()

2014-04-22 Thread Daniel Vetter
On Tue, Apr 22, 2014 at 05:09:32PM +0200, Thierry Reding wrote: > From: Thierry Reding > > Add a helper function that allows drivers to statically set the unique > name of the device. This will allow platform and USB drivers to get rid > of their DRM bus implementations and directly use drm_dev_a

[RFC 4/5] drm: Introduce drm_set_unique()

2014-04-22 Thread Thierry Reding
From: Thierry Reding Add a helper function that allows drivers to statically set the unique name of the device. This will allow platform and USB drivers to get rid of their DRM bus implementations and directly use drm_dev_alloc() and drm_dev_register(). Signed-off-by: Thierry Reding --- driver