mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@linux.intel.com>
To: long.yunjian@zte.com.cn
Cc: rodrigo.vivi@intel.com, joonas.lahtinen@linux.intel.com,
	tursulin@ursulin.net, airlied@gmail.com, simona@ffwll.ch,
	intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org,
	dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org,
	mou.yi@zte.com.cn, xu.lifeng1@zte.com.cn, fang.yumeng@zte.com.cn,
	ouyang.maochun@zte.com.cn
Subject: Re: [PATCH] drm/i915/display: Use str_true_false() helper
Date: Fri, 23 May 2025 13:41:14 +0300	[thread overview]
Message-ID: <5ee0e214018c1a0cdf279cef5dabd4851a12a647@intel.com> (raw)
In-Reply-To: <20250523141422844GEA-yzba-OvN0lZirDsS-@zte.com.cn>

On Fri, 23 May 2025, <long.yunjian@zte.com.cn> wrote:
> From: Yumeng Fang <fang.yumeng@zte.com.cn>
>
> Remove hard-coded strings by using the str_true_false() helper.
>
> Signed-off-by: Yumeng Fang <fang.yumeng@zte.com.cn>
> Signed-off-by: Yunjian Long <long.yunjian@zte.com.cn>

Pushed to drm-intel-next, thanks for the patch.

BR,
Jani.


> ---
>  drivers/gpu/drm/i915/display/intel_display_debugfs.c | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_display_debugfs.c b/drivers/gpu/drm/i915/display/intel_display_debugfs.c
> index 8d0a1779dd19..0e3e62468902 100644
> --- a/drivers/gpu/drm/i915/display/intel_display_debugfs.c
> +++ b/drivers/gpu/drm/i915/display/intel_display_debugfs.c
> @@ -5,6 +5,7 @@
>
>  #include <linux/debugfs.h>
>  #include <linux/string_helpers.h>
> +#include <linux/string_choices.h>
>
>  #include <drm/drm_debugfs.h>
>  #include <drm/drm_drv.h>
> @@ -972,7 +973,7 @@ static ssize_t i915_dsc_fec_support_write(struct file *file,
>  		return ret;
>
>  	drm_dbg(display->drm, "Got %s for DSC Enable\n",
> -		(dsc_enable) ? "true" : "false");
> +		str_true_false(dsc_enable));
>  	intel_dp->force_dsc_en = dsc_enable;
>
>  	*offp += len;
> @@ -1183,7 +1184,7 @@ static ssize_t i915_dsc_fractional_bpp_write(struct file *file,
>  		return ret;
>
>  	drm_dbg(display->drm, "Got %s for DSC Fractional BPP Enable\n",
> -		(dsc_fractional_bpp_enable) ? "true" : "false");
> +		str_true_false(dsc_fractional_bpp_enable));
>  	intel_dp->force_dsc_fractional_bpp_en = dsc_fractional_bpp_enable;
>
>  	*offp += len;

-- 
Jani Nikula, Intel

      reply	other threads:[~2025-05-23 10:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-23  6:14 long.yunjian
2025-05-23 10:41 ` Jani Nikula [this message]

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=5ee0e214018c1a0cdf279cef5dabd4851a12a647@intel.com \
    --to=jani.nikula@linux.intel.com \
    --cc=airlied@gmail.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=fang.yumeng@zte.com.cn \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=joonas.lahtinen@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=long.yunjian@zte.com.cn \
    --cc=mou.yi@zte.com.cn \
    --cc=ouyang.maochun@zte.com.cn \
    --cc=rodrigo.vivi@intel.com \
    --cc=simona@ffwll.ch \
    --cc=tursulin@ursulin.net \
    --cc=xu.lifeng1@zte.com.cn \
    /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

all inboxes | Powered by JetHome®