drm: Add reference counting on HDR metadata blob
authorJonas Karlman <jonas@kwiboo.se>
Thu, 16 May 2019 14:10:07 +0000 (19:40 +0530)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 22 May 2019 19:46:35 +0000 (22:46 +0300)
commitc0b0ebb1719984513333f88d0c2a2bb3fdb61474
tree177600bca4698121221ae03c4fbf543e0ddd9bc9
parentfbb5d0353c62d10c3699ec844d2d015a762952d7
drm: Add reference counting on HDR metadata blob

This adds reference count for HDR metadata blob,
handled as part of duplicate and destroy connector
state functions.

v2: Removed the hdr_metadata_changed initialization as
the variable is dropped and not required.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Signed-off-by: Uma Shankar <uma.shankar@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1558015817-12025-3-git-send-email-uma.shankar@intel.com
drivers/gpu/drm/drm_atomic_state_helper.c