mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 07:03:03 +02:00
drm/i915/display: Use str_true_false() helper
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> Link: https://lore.kernel.org/r/20250523141422844GEA-yzba-OvN0lZirDsS-@zte.com.cn Signed-off-by: Jani Nikula <jani.nikula@intel.com>
This commit is contained in:
parent
56764c845a
commit
42e5fc672f
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user