mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-08 08:02:59 -04:00
drm/i915: Use string enable/disable choice helpers
Replace the last few remaining instances of string enable(d)/disable(d) choices with the linux string choice helpers to avoid further cocci warnings. Signed-off-by: Sai Teja Pottumuttu <sai.teja.pottumuttu@intel.com> Reviewed-by: Jani Nikula <jani.nikula@intel.com> Signed-off-by: Matt Roper <matthew.d.roper@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20241023054655.4017489-1-sai.teja.pottumuttu@intel.com
This commit is contained in:
committed by
Matt Roper
parent
5ddd0c6c14
commit
a0e45f70d4
@@ -784,7 +784,7 @@ intel_dp_mst_hdcp_stream_encryption(struct intel_connector *connector,
|
||||
stream_enc_status, enable ? stream_enc_status : 0,
|
||||
HDCP_ENCRYPT_STATUS_CHANGE_TIMEOUT_MS)) {
|
||||
drm_err(&i915->drm, "Timed out waiting for transcoder: %s stream encryption %s\n",
|
||||
transcoder_name(cpu_transcoder), enable ? "enabled" : "disabled");
|
||||
transcoder_name(cpu_transcoder), str_enabled_disabled(enable));
|
||||
return -ETIMEDOUT;
|
||||
}
|
||||
|
||||
@@ -818,7 +818,7 @@ intel_dp_mst_hdcp2_stream_encryption(struct intel_connector *connector,
|
||||
enable ? STREAM_ENCRYPTION_STATUS : 0,
|
||||
HDCP_ENCRYPT_STATUS_CHANGE_TIMEOUT_MS)) {
|
||||
drm_err(&i915->drm, "Timed out waiting for transcoder: %s stream encryption %s\n",
|
||||
transcoder_name(cpu_transcoder), enable ? "enabled" : "disabled");
|
||||
transcoder_name(cpu_transcoder), str_enabled_disabled(enable));
|
||||
return -ETIMEDOUT;
|
||||
}
|
||||
|
||||
|
||||
@@ -1148,7 +1148,7 @@ void intel_pps_backlight_power(struct intel_connector *connector, bool enable)
|
||||
return;
|
||||
|
||||
drm_dbg_kms(display->drm, "panel power control backlight %s\n",
|
||||
enable ? "enable" : "disable");
|
||||
str_enable_disable(enable));
|
||||
|
||||
if (enable)
|
||||
intel_pps_backlight_on(intel_dp);
|
||||
|
||||
@@ -1005,7 +1005,7 @@ xelpdp_tc_phy_wait_for_tcss_power(struct intel_tc_port *tc, bool enabled)
|
||||
if (wait_for(xelpdp_tc_phy_tcss_power_is_enabled(tc) == enabled, 5)) {
|
||||
drm_dbg_kms(&i915->drm,
|
||||
"Port %s: timeout waiting for TCSS power to get %s\n",
|
||||
enabled ? "enabled" : "disabled",
|
||||
str_enabled_disabled(enabled),
|
||||
tc->port_name);
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user