From 20a7783dc751b6b22c1fae044d97fb3ad4ecc93a Mon Sep 17 00:00:00 2001 From: Mark Yao Date: Wed, 28 Jun 2017 15:00:51 +0800 Subject: [PATCH] drm/atomic: export drm_atomic_replace_property_blob_from_id Change-Id: Iebca91e396f6770b0b2ce588093119ea321f3fb5 Signed-off-by: Mark Yao --- drivers/gpu/drm/drm_atomic.c | 3 ++- include/drm/drm_atomic.h | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_atomic.c b/drivers/gpu/drm/drm_atomic.c index 47eee6e956e2..c2d1a94fe8d4 100644 --- a/drivers/gpu/drm/drm_atomic.c +++ b/drivers/gpu/drm/drm_atomic.c @@ -419,7 +419,7 @@ drm_atomic_replace_property_blob(struct drm_property_blob **blob, return; } -static int +int drm_atomic_replace_property_blob_from_id(struct drm_crtc *crtc, struct drm_property_blob **blob, uint64_t blob_id, @@ -441,6 +441,7 @@ drm_atomic_replace_property_blob_from_id(struct drm_crtc *crtc, return 0; } +EXPORT_SYMBOL(drm_atomic_replace_property_blob_from_id); /** * drm_atomic_crtc_set_property - set property on CRTC diff --git a/include/drm/drm_atomic.h b/include/drm/drm_atomic.h index 4b74c97d297a..981b856e1274 100644 --- a/include/drm/drm_atomic.h +++ b/include/drm/drm_atomic.h @@ -109,6 +109,11 @@ drm_atomic_get_existing_connector_state(struct drm_atomic_state *state, return state->connector_states[index]; } +int drm_atomic_replace_property_blob_from_id(struct drm_crtc *crtc, + struct drm_property_blob **blob, + uint64_t blob_id, + ssize_t expected_size, + bool *replaced); int __must_check drm_atomic_set_mode_for_crtc(struct drm_crtc_state *state, struct drm_display_mode *mode); -- 2.34.1