aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorR Sundar <[email protected]>2024-10-07 23:03:00 +0530
committerJani Nikula <[email protected]>2024-10-22 13:09:22 +0300
commit04e82100156d33dc8aebdc5a400375ba2ca3c3c1 (patch)
treed543df4cee4a0ea163e98c094f0e4e1124a3bd88
parentdf6bbcb19ff8d3e659537e1ca0cba054df5fb1bb (diff)
drm/i915/ddi: use string choice helpers
Use str_enabled_disabled string helpers for better readability and to fix cocci warning. Reported-by: kernel test robot <[email protected]> Reported-by: Julia Lawall <[email protected]> Closes: https://lore.kernel.org/r/[email protected]/ Signed-off-by: R Sundar <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Signed-off-by: Jani Nikula <[email protected]>
-rw-r--r--drivers/gpu/drm/i915/display/intel_ddi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_ddi.c b/drivers/gpu/drm/i915/display/intel_ddi.c
index fe1ded6707f9..ff4c633c8546 100644
--- a/drivers/gpu/drm/i915/display/intel_ddi.c
+++ b/drivers/gpu/drm/i915/display/intel_ddi.c
@@ -2236,7 +2236,7 @@ static void intel_dp_sink_set_fec_ready(struct intel_dp *intel_dp,
if (drm_dp_dpcd_writeb(&intel_dp->aux, DP_FEC_CONFIGURATION,
enable ? DP_FEC_READY : 0) <= 0)
drm_dbg_kms(display->drm, "Failed to set FEC_READY to %s in the sink\n",
- enable ? "enabled" : "disabled");
+ str_enabled_disabled(enable));
if (enable &&
drm_dp_dpcd_writeb(&intel_dp->aux, DP_FEC_STATUS,