]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/i915: use PIPE_CONF_CHECK_BOOL() for bool members
authorJani Nikula <jani.nikula@intel.com>
Wed, 29 Nov 2023 17:33:16 +0000 (19:33 +0200)
committerJani Nikula <jani.nikula@intel.com>
Fri, 1 Dec 2023 08:42:26 +0000 (10:42 +0200)
Don't treat bools as integers.

v2: Rebase

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231129173317.1192269-1-jani.nikula@intel.com
drivers/gpu/drm/i915/display/intel_display.c

index 9dc22fc8b3d3b0bc22f50a836de4bb3df30a8e10..d62cdae7ab6b02d3d66f26b38f035bec8151ed3a 100644 (file)
@@ -5091,8 +5091,8 @@ intel_pipe_config_compare(const struct intel_crtc_state *current_config,
 #define PIPE_CONF_QUIRK(quirk) \
        ((current_config->quirks | pipe_config->quirks) & (quirk))
 
-       PIPE_CONF_CHECK_I(hw.enable);
-       PIPE_CONF_CHECK_I(hw.active);
+       PIPE_CONF_CHECK_BOOL(hw.enable);
+       PIPE_CONF_CHECK_BOOL(hw.active);
 
        PIPE_CONF_CHECK_I(cpu_transcoder);
        PIPE_CONF_CHECK_I(mst_master_transcoder);
@@ -5301,8 +5301,8 @@ intel_pipe_config_compare(const struct intel_crtc_state *current_config,
        PIPE_CONF_CHECK_I(dsc.config.second_line_bpg_offset);
        PIPE_CONF_CHECK_I(dsc.config.nsl_bpg_offset);
 
-       PIPE_CONF_CHECK_I(dsc.compression_enable);
-       PIPE_CONF_CHECK_I(dsc.dsc_split);
+       PIPE_CONF_CHECK_BOOL(dsc.compression_enable);
+       PIPE_CONF_CHECK_BOOL(dsc.dsc_split);
        PIPE_CONF_CHECK_I(dsc.compressed_bpp_x16);
 
        PIPE_CONF_CHECK_BOOL(splitter.enable);