]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/atomic: convert drm_atomic_get_{old, new}_colorop_state() into proper functions
authorJani Nikula <jani.nikula@intel.com>
Fri, 19 Dec 2025 11:49:39 +0000 (13:49 +0200)
committerJani Nikula <jani.nikula@intel.com>
Mon, 22 Dec 2025 13:37:26 +0000 (15:37 +0200)
commite05b08d7d0162cf77fff119367fb1a2d5ab3e669
treeabc9754a84d6a4e8c08dbd7aa80e7a27ee42b4de
parent50c26c301c5176cc8b431044390e10ec862b9b77
drm/atomic: convert drm_atomic_get_{old, new}_colorop_state() into proper functions

There is no real reason to include drm_colorop.h from drm_atomic.h, as
drm_atomic_get_{old,new}_colorop_state() have no real reason to be
static inline.

Convert the static inlines to proper functions, and drop the include to
reduce the include dependencies and improve data hiding.

v2: Fix vkms build failures (Alex)

Fixes: cfc27680ee20 ("drm/colorop: Introduce new drm_colorop mode object")
Cc: Simon Ser <contact@emersion.fr>
Cc: Alex Hung <alex.hung@amd.com>
Cc: Harry Wentland <harry.wentland@amd.com>
Cc: Daniel Stone <daniels@collabora.com>
Cc: Melissa Wen <mwen@igalia.com>
Cc: Sebastian Wick <sebastian.wick@redhat.com>
Cc: Alex Hung <alex.hung@amd.com>
Reviewed-by: Alex Hung <alex.hung@amd.com>
Link: https://patch.msgid.link/20251219114939.1069851-1-jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c
drivers/gpu/drm/drm_atomic.c
drivers/gpu/drm/drm_atomic_helper.c
drivers/gpu/drm/i915/display/intel_display_types.h
drivers/gpu/drm/vkms/vkms_composer.c
drivers/gpu/drm/vkms/vkms_drv.c
include/drm/drm_atomic.h