diff options
author | Dave Airlie <airlied@redhat.com> | 2017-10-03 12:38:58 +1000 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-10-06 13:09:10 -0400 |
commit | 5c58ab0bd61b5c8538721f4200475c0af0e33efe (patch) | |
tree | 32c4f16006f9293005dfc63c16ce8d39d411e575 /drivers/gpu/drm/amd/display/dc/dc_hw_types.h | |
parent | 93052132568aedb5eda04deae51d6034738a4800 (diff) |
amdgpu/dc: convert dc_gamma to kref reference counting.
Rolling your own reference counting is frowned upon.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dc_hw_types.h')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/dc_hw_types.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dc_hw_types.h b/drivers/gpu/drm/amd/display/dc/dc_hw_types.h index 94f83cd9ab32..4ab109314e4b 100644 --- a/drivers/gpu/drm/amd/display/dc/dc_hw_types.h +++ b/drivers/gpu/drm/amd/display/dc/dc_hw_types.h @@ -420,6 +420,7 @@ enum dc_gamma_type { }; struct dc_gamma { + struct kref refcount; enum dc_gamma_type type; unsigned int num_entries; @@ -431,9 +432,6 @@ struct dc_gamma { /* private to DC core */ struct dc_context *ctx; - - /* private to dc_surface.c */ - atomic_t ref_count; }; /* Used by both ipp amd opp functions*/ |