diff options
author | Peter Rosin <peda@axentia.se> | 2017-07-13 18:25:25 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2017-07-14 15:53:06 +0200 |
commit | 5f057ffd6da26c939dff976a2acc76233bbe4467 (patch) | |
tree | 34c3a556a7719a4518f050558cc3f5908d4da1b1 /include/drm/drm_property.h | |
parent | drm/dp/mst: Use memchr_inv() instead of memcmp() against a zeroed array (diff) | |
download | linux-5f057ffd6da26c939dff976a2acc76233bbe4467.tar.xz linux-5f057ffd6da26c939dff976a2acc76233bbe4467.zip |
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/drm/drm_property.h')
-rw-r--r-- | include/drm/drm_property.h | 2 |
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); |