Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@linux.intel.com>
To: Sai Teja Pottumuttu <sai.teja.pottumuttu@intel.com>,
	intel-gfx@lists.freedesktop.org
Cc: Sai Teja Pottumuttu <sai.teja.pottumuttu@intel.com>
Subject: Re: [PATCH] drm/i915: Use string enable/disable choice helpers
Date: Wed, 23 Oct 2024 12:28:10 +0300	[thread overview]
Message-ID: <871q07uq1h.fsf@intel.com> (raw)
In-Reply-To: <20241023054655.4017489-1-sai.teja.pottumuttu@intel.com>

On Wed, 23 Oct 2024, Sai Teja Pottumuttu <sai.teja.pottumuttu@intel.com> wrote:
> 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>

> ---
>  drivers/gpu/drm/i915/display/intel_dp_hdcp.c | 4 ++--
>  drivers/gpu/drm/i915/display/intel_pps.c     | 2 +-
>  drivers/gpu/drm/i915/display/intel_tc.c      | 2 +-
>  3 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_dp_hdcp.c b/drivers/gpu/drm/i915/display/intel_dp_hdcp.c
> index dce645a07cdb..6a09b93742ff 100644
> --- a/drivers/gpu/drm/i915/display/intel_dp_hdcp.c
> +++ b/drivers/gpu/drm/i915/display/intel_dp_hdcp.c
> @@ -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;
>  	}
>  
> diff --git a/drivers/gpu/drm/i915/display/intel_pps.c b/drivers/gpu/drm/i915/display/intel_pps.c
> index ffeee9daa568..5bea6404491f 100644
> --- a/drivers/gpu/drm/i915/display/intel_pps.c
> +++ b/drivers/gpu/drm/i915/display/intel_pps.c
> @@ -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);
> diff --git a/drivers/gpu/drm/i915/display/intel_tc.c b/drivers/gpu/drm/i915/display/intel_tc.c
> index 6f2ee7dbc43b..b16c4d2d4077 100644
> --- a/drivers/gpu/drm/i915/display/intel_tc.c
> +++ b/drivers/gpu/drm/i915/display/intel_tc.c
> @@ -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;
>  	}

-- 
Jani Nikula, Intel

  parent reply	other threads:[~2024-10-23  9:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-23  5:46 [PATCH] drm/i915: Use string enable/disable choice helpers Sai Teja Pottumuttu
2024-10-23  6:44 ` ✗ Fi.CI.BUILD: warning for " Patchwork
2024-10-23  6:54 ` ✓ Fi.CI.BAT: success " Patchwork
2024-10-23  9:28 ` Jani Nikula [this message]
2024-10-23 10:39 ` ✗ Fi.CI.IGT: failure " Patchwork
2024-10-28 20:11   ` Matt Roper

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871q07uq1h.fsf@intel.com \
    --to=jani.nikula@linux.intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=sai.teja.pottumuttu@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox