]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/i915/display: remove enum macro magic in intel_display_wa()
authorLuca Coelho <luciano.coelho@intel.com>
Thu, 5 Mar 2026 09:59:04 +0000 (11:59 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Mon, 9 Mar 2026 10:32:45 +0000 (12:32 +0200)
commitae4d74dad8531b742714d1973055b348349f5188
tree23276a8029f0cf3fc1cad7d699d2aa989ea9dcae
parent88442ba208dd5d3405de3f5000cf5b2c86876ae3
drm/i915/display: remove enum macro magic in intel_display_wa()

There's not much use in passing a number to the macro and let it
convert that into the enum and a string.  It just hides the symbols.

Remove the number to enum conversion magic in intel_display_wa().

This has the side-effect of changing the print in the drm_WARN() that
is issued when the number is not implemented, but that is moot anyway
and can be changed later to something cleaner if needed.

Reviewed-by: Suraj Kandpal <suraj.kandpal@intel.com>
Link: https://patch.msgid.link/20260305100100.332956-2-luciano.coelho@intel.com
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/gpu/drm/i915/display/intel_cdclk.c
drivers/gpu/drm/i915/display/intel_display.c
drivers/gpu/drm/i915/display/intel_display_power_well.c
drivers/gpu/drm/i915/display/intel_display_wa.c
drivers/gpu/drm/i915/display/intel_display_wa.h
drivers/gpu/drm/i915/display/intel_fbc.c
drivers/gpu/drm/i915/display/intel_gmbus.c
drivers/gpu/drm/i915/display/skl_scaler.c