* [PATCH] drm/radeon: add missing spaces after ',' and else should follow close brace '}'
[not found] <20230724032920.7892-1-xujianghui@cdjrlc.com>
@ 2023-07-24 3:30 ` sunran001
2023-07-24 21:39 ` [PATCH] drm/radeon: add missing spaces after ', ' " Alex Deucher
0 siblings, 1 reply; 2+ messages in thread
From: sunran001 @ 2023-07-24 3:30 UTC (permalink / raw)
To: alexander.deucher; +Cc: dri-devel, amd-gfx, linux-kernel
ERROR: else should follow close brace '}'
ERROR: space required after that ',' (ctx:VxV)
Signed-off-by: Ran Sun <sunran001@208suo.com>
---
drivers/gpu/drm/radeon/radeon_connectors.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/radeon/radeon_connectors.c
b/drivers/gpu/drm/radeon/radeon_connectors.c
index 07193cd0c417..4ceceb972e8d 100644
--- a/drivers/gpu/drm/radeon/radeon_connectors.c
+++ b/drivers/gpu/drm/radeon/radeon_connectors.c
@@ -198,8 +198,7 @@ int radeon_get_monitor_bpc(struct drm_connector
*connector)
DRM_DEBUG("%s: HDMI deep color 10 bpc exceeds max tmds clock. Using
%d bpc.\n",
connector->name, bpc);
}
- }
- else if (bpc > 8) {
+ } else if (bpc > 8) {
/* max_tmds_clock missing, but hdmi spec mandates it for deep color.
*/
DRM_DEBUG("%s: Required max tmds clock for HDMI deep color missing.
Using 8 bpc.\n",
connector->name);
@@ -1372,7 +1371,7 @@ radeon_dvi_detect(struct drm_connector *connector,
bool force)
/* assume digital unless load detected otherwise */
radeon_connector->use_digital = true;
lret = encoder_funcs->detect(encoder, connector);
- DRM_DEBUG_KMS("load_detect %x returned:
%x\n",encoder->encoder_type,lret);
+ DRM_DEBUG_KMS("load_detect %x returned: %x\n",
encoder->encoder_type, lret);
if (lret == connector_status_connected)
radeon_connector->use_digital = false;
}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] drm/radeon: add missing spaces after ', ' and else should follow close brace '}'
2023-07-24 3:30 ` [PATCH] drm/radeon: add missing spaces after ',' and else should follow close brace '}' sunran001
@ 2023-07-24 21:39 ` Alex Deucher
0 siblings, 0 replies; 2+ messages in thread
From: Alex Deucher @ 2023-07-24 21:39 UTC (permalink / raw)
To: sunran001; +Cc: alexander.deucher, amd-gfx, dri-devel, linux-kernel
Applied. Thanks!
Alex
On Sun, Jul 23, 2023 at 11:30 PM <sunran001@208suo.com> wrote:
>
> ERROR: else should follow close brace '}'
>
> ERROR: space required after that ',' (ctx:VxV)
>
> Signed-off-by: Ran Sun <sunran001@208suo.com>
> ---
> drivers/gpu/drm/radeon/radeon_connectors.c | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/radeon/radeon_connectors.c
> b/drivers/gpu/drm/radeon/radeon_connectors.c
> index 07193cd0c417..4ceceb972e8d 100644
> --- a/drivers/gpu/drm/radeon/radeon_connectors.c
> +++ b/drivers/gpu/drm/radeon/radeon_connectors.c
> @@ -198,8 +198,7 @@ int radeon_get_monitor_bpc(struct drm_connector
> *connector)
> DRM_DEBUG("%s: HDMI deep color 10 bpc exceeds max tmds clock. Using
> %d bpc.\n",
> connector->name, bpc);
> }
> - }
> - else if (bpc > 8) {
> + } else if (bpc > 8) {
> /* max_tmds_clock missing, but hdmi spec mandates it for deep color.
> */
> DRM_DEBUG("%s: Required max tmds clock for HDMI deep color missing.
> Using 8 bpc.\n",
> connector->name);
> @@ -1372,7 +1371,7 @@ radeon_dvi_detect(struct drm_connector *connector,
> bool force)
> /* assume digital unless load detected otherwise */
> radeon_connector->use_digital = true;
> lret = encoder_funcs->detect(encoder, connector);
> - DRM_DEBUG_KMS("load_detect %x returned:
> %x\n",encoder->encoder_type,lret);
> + DRM_DEBUG_KMS("load_detect %x returned: %x\n",
> encoder->encoder_type, lret);
> if (lret == connector_status_connected)
> radeon_connector->use_digital = false;
> }
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-07-24 21:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20230724032920.7892-1-xujianghui@cdjrlc.com>
2023-07-24 3:30 ` [PATCH] drm/radeon: add missing spaces after ',' and else should follow close brace '}' sunran001
2023-07-24 21:39 ` [PATCH] drm/radeon: add missing spaces after ', ' " Alex Deucher
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).