summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter Rosin <peda@axentia.se>2017-07-13 18:25:25 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2017-07-14 15:53:06 +0200
commit5f057ffd6da26c939dff976a2acc76233bbe4467 (patch)
tree34c3a556a7719a4518f050558cc3f5908d4da1b1 /include
parente38e12895022d7148220fc35782b5bd6461f1736 (diff)
drm: rename, adjust and export drm_atomic_replace_property_blob
The function has little to do with atomic, it's just where it has so far been needed. So, rename it to drm_property_replace_blob, move it to drm_property.c and export it. Change the semantics to return whether the blob was replaced instead of using an extra argument for that. Signed-off-by: Peter Rosin <peda@axentia.se> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: http://patchwork.freedesktop.org/patch/msgid/20170713162538.22788-2-peda@axentia.se
Diffstat (limited to 'include')
-rw-r--r--include/drm/drm_property.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/drm/drm_property.h b/include/drm/drm_property.h
index 619868dc08d8..37355c623e6c 100644
--- a/include/drm/drm_property.h
+++ b/include/drm/drm_property.h
@@ -273,6 +273,8 @@ int drm_property_replace_global_blob(struct drm_device *dev,
const void *data,
struct drm_mode_object *obj_holds_id,
struct drm_property *prop_holds_id);
+bool drm_property_replace_blob(struct drm_property_blob **blob,
+ struct drm_property_blob *new_blob);
struct drm_property_blob *drm_property_blob_get(struct drm_property_blob *blob);
void drm_property_blob_put(struct drm_property_blob *blob);