Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp2624883rwo; Sun, 23 Jul 2023 20:48:08 -0700 (PDT) X-Google-Smtp-Source: APBJJlFmMDztROUcIyphjvsaMah5u+RHtyAdMRVael/9ylVN9onKbVnfbO28deWiu/rnJBkku0ug X-Received: by 2002:a17:906:29c:b0:993:f9d4:eaac with SMTP id 28-20020a170906029c00b00993f9d4eaacmr8856423ejf.24.1690170487899; Sun, 23 Jul 2023 20:48:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690170487; cv=none; d=google.com; s=arc-20160816; b=WAkPpyRj8atbA/1H98/yJvabTngFWXjLCpHvqws5NImkBz5K5p1v483BEVI+2nnEWE bjCYsQLYbPQoKYMUdH34b3x78fTJlWZI7gEbdLc6WPV59RqQIjZceVGV/wHZTJCfWzYu 6t/3CWEsdf0X6MiQIdnZa3Ct4Aix5K/ZKRqN7Gb8Ncfmqv7gnWSbQfwc96XwULOuopTL ko/KnVVGe8IotmEWzvdg1gSW6ywAfE/5Pf7eNdoe6RGNe62+1lP75TSUxV4T3UdyLi5Y OuA796DCFXEnGMFX2+bsf1gLc6Gcu3k1Xe7YJwaWKkyGxyzQpxdCMRoZisUnsRWDyeTF JRaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:user-agent :references:in-reply-to:subject:cc:to:from:date:mime-version :dkim-signature; bh=BQqbGYRmzqcw/jFpdiP8qJMm8wVgCIZm6c5LBYnooZk=; fh=7mrb+jEz4ldW4HYDrM78dc1rA6GIHF/xkKOCEiigzvE=; b=odfpjry7rpV8S/l/nj9iq6g8J3zGF6OHO1DQDIqHGWCKMNYSeeE930NzAW9S3fF5ep FOfQDWygYHs3g9OPq/0YIBzNzFx2P65r9D9ahPiEakzmBHXpqBWHQsQHszG2VDLPTWkP wW6fNy8E4ds6JUiU1Vwn7gUhVg1u38oyNg+0U8/wgAK1pOwfa0S5myZku8/G7UH/TL1A XdcQ495JwpM66JRaUrFyrW0LM3Zydd1gVFyVUkaxKKPvYvIv0DsrrgqdZEhUvDHDEAQK E4r2/vX+bTIy26R58v42Z7Ay+Yj8kcqT6DHkMaeZdmbpXRwqr82gRIPpxHZJQcGZ02RP sdeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@208.org header.s=dkim header.b="l/VAKTIc"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d13-20020a1709064c4d00b00997c3561696si5834251ejw.577.2023.07.23.20.47.44; Sun, 23 Jul 2023 20:48:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=temperror (no key for signature) header.i=@208.org header.s=dkim header.b="l/VAKTIc"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229913AbjGXDa0 (ORCPT + 99 others); Sun, 23 Jul 2023 23:30:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229506AbjGXDaY (ORCPT ); Sun, 23 Jul 2023 23:30:24 -0400 Received: from mail.208.org (unknown [183.242.55.162]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5EAAC1AA for ; Sun, 23 Jul 2023 20:30:22 -0700 (PDT) Received: from mail.208.org (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTP id 4R8Qf26v7dzBRx4N for ; Mon, 24 Jul 2023 11:30:18 +0800 (CST) Authentication-Results: mail.208.org (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=208.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=208.org; h= content-transfer-encoding:content-type:message-id:user-agent :references:in-reply-to:subject:to:from:date:mime-version; s= dkim; t=1690169418; x=1692761419; bh=Aih9b3mm0L/W57ewzfZK0Mk2HMM uvyf31AvjFkXi8+I=; b=l/VAKTIcjlyWOGKtifjZLmhWFCSY+xtgf4nSre0R708 Kd/+LemFANnznhlFN8fdLbFXK5NQiSK4+8GTcwULPjHRW8Ew2tPLFZYxQeH1ykNU paqOravr1Sd+9X84AOm1BlwHEQ+jZP7Kh++gvbGmQegIgNNk/eZmczkmQDbAUNsd fgCx/ntDUu6XreMbX+YBrc2nbLMeWUMXd2ssbGuL8jxonzh+uNhb0umnU3ExdHrV JWGOkFehD0U4H604jww6wf8PWWbcUPdVm4AZXQWM//BkkBXQY6AYAM/vtrOGzgEY Y3Ue41AP8vFcm5aBkD3dmc3MuN1Ak96bHpgJi6LlCGw== X-Virus-Scanned: amavisd-new at mail.208.org Received: from mail.208.org ([127.0.0.1]) by mail.208.org (mail.208.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 6ZX9COF4HglX for ; Mon, 24 Jul 2023 11:30:18 +0800 (CST) Received: from localhost (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTPSA id 4R8Qf24pbszBRDrF; Mon, 24 Jul 2023 11:30:18 +0800 (CST) MIME-Version: 1.0 Date: Mon, 24 Jul 2023 11:30:18 +0800 From: sunran001@208suo.com To: alexander.deucher@amd.com Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm/radeon: add missing spaces after ',' and else should follow close brace '}' In-Reply-To: <20230724032920.7892-1-xujianghui@cdjrlc.com> References: <20230724032920.7892-1-xujianghui@cdjrlc.com> User-Agent: Roundcube Webmail Message-ID: X-Sender: sunran001@208suo.com Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,RDNS_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ERROR: else should follow close brace '}' ERROR: space required after that ',' (ctx:VxV) Signed-off-by: Ran Sun --- 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; }