* [PATCH] drm/amd/display: Clean up coding style
@ 2025-07-31 7:54 Xichao Zhao
2025-08-18 0:01 ` Alex Hung
0 siblings, 1 reply; 2+ messages in thread
From: Xichao Zhao @ 2025-07-31 7:54 UTC (permalink / raw)
To: harry.wentland, sunpeng.li, alexander.deucher, christian.koenig,
airlied, simona
Cc: siqueira, linux-kernel, amd-gfx, dri-devel, Xichao Zhao
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>
---
.../amd/display/dc/link/protocols/link_dp_capability.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_capability.c b/drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_capability.c
index e0c4416993d9..caddb7dfb133 100644
--- a/drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_capability.c
+++ b/drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_capability.c
@@ -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);
--
2.34.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] drm/amd/display: Clean up coding style
2025-07-31 7:54 [PATCH] drm/amd/display: Clean up coding style Xichao Zhao
@ 2025-08-18 0:01 ` Alex Hung
0 siblings, 0 replies; 2+ messages in thread
From: Alex Hung @ 2025-08-18 0:01 UTC (permalink / raw)
To: Xichao Zhao, harry.wentland, sunpeng.li, alexander.deucher,
christian.koenig, airlied, simona
Cc: siqueira, linux-kernel, amd-gfx, dri-devel
Reviewed-by: Alex Hung <alex.hung@amd.com>
On 7/31/25 01:54, Xichao Zhao wrote:
> 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>
> ---
> .../amd/display/dc/link/protocols/link_dp_capability.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_capability.c b/drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_capability.c
> index e0c4416993d9..caddb7dfb133 100644
> --- a/drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_capability.c
> +++ b/drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_capability.c
> @@ -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);
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-08-18 0:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-31 7:54 [PATCH] drm/amd/display: Clean up coding style Xichao Zhao
2025-08-18 0:01 ` Alex Hung
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).