]> www.infradead.org Git - users/hch/misc.git/commitdiff
drm/amd/display: Clean up coding style
authorXichao Zhao <zhao.xichao@vivo.com>
Thu, 31 Jul 2025 07:54:50 +0000 (15:54 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 18 Aug 2025 21:01:08 +0000 (17:01 -0400)
Adjust whitespace around operators to improve code readability
and comply with kernel coding style guidelines.

These changes are purely stylistic and introduce no
functional modifications.

Signed-off-by: Xichao Zhao <zhao.xichao@vivo.com>
Reviewed-by: Alex Hung <alex.hung@amd.com>
Tested-by: Dan Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_capability.c

index e0c4416993d948f033c67682a07bcaeee585b717..caddb7dfb1334b0e7199f48d416adaf3a0cccd46 100644 (file)
@@ -1525,8 +1525,8 @@ bool read_is_mst_supported(struct dc_link *link)
                return false;
        }
 
-       rev.raw  = 0;
-       cap.raw  = 0;
+       rev.raw = 0;
+       cap.raw = 0;
 
        st = core_link_read_dpcd(link, DP_DPCD_REV, &rev.raw,
                        sizeof(rev));
@@ -2125,13 +2125,13 @@ void detect_edp_sink_caps(struct dc_link *link)
                                                &backlight_adj_cap, sizeof(backlight_adj_cap));
 
        link->dpcd_caps.dynamic_backlight_capable_edp =
-                               (backlight_adj_cap & DP_EDP_DYNAMIC_BACKLIGHT_CAP) ? true:false;
+                               (backlight_adj_cap & DP_EDP_DYNAMIC_BACKLIGHT_CAP) ? true : false;
 
        core_link_read_dpcd(link, DP_EDP_GENERAL_CAP_1,
                                                &general_edp_cap, sizeof(general_edp_cap));
 
        link->dpcd_caps.set_power_state_capable_edp =
-                               (general_edp_cap & DP_EDP_SET_POWER_CAP) ? true:false;
+                               (general_edp_cap & DP_EDP_SET_POWER_CAP) ? true : false;
 
        set_default_brightness_aux(link);