drm: Introduce helper for replacing blob properties
authorDaniel Stone <daniels@collabora.com>
Mon, 20 Apr 2015 18:22:53 +0000 (19:22 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 8 May 2015 11:29:56 +0000 (13:29 +0200)
commitd2ed34362a52c9f0c4d77325fb25bb729704be45
tree1e92b9a10a83cc0dfaecadbd2f564039988ec40c
parent4339ed82b2fe11689353ab1955c8ee1af8b5c385
drm: Introduce helper for replacing blob properties

Introduce a common helper for the pattern of:
  - allocate new blob property
  - potentially free old blob property
  - replace content of indicative property with new blob ID
  - change member pointer on modeset object

Signed-off-by: Daniel Stone <daniels@collabora.com>
Cc: Dave Airlie <airlied@redhat.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
[danvet: Squash in fixup from Daniel for the kerneldoc, reported by
0day builder.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_crtc.c