Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp549811rwo; Tue, 1 Aug 2023 23:36:42 -0700 (PDT) X-Google-Smtp-Source: APBJJlFTsvqwd75Q32ppGE6g5K00OcLmDedPP7BeK1+4yCKusqFGqc1RKZ7m84AXCPRikdTN6T5u X-Received: by 2002:a17:903:120b:b0:1b8:936f:c34d with SMTP id l11-20020a170903120b00b001b8936fc34dmr15708061plh.27.1690958201993; Tue, 01 Aug 2023 23:36:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690958201; cv=none; d=google.com; s=arc-20160816; b=ZFEkQyvDiqdi7hZviniBiU7ulCaC7JXlljThtNf4kZC/qE+NSxi2Lcz+9+nfGdivLf 59OWx4xKoXkSqeFwCgnfSb5EZRFIbSah9jTO5FrsJ/TmkcH27gTSdkHKEz2yFTME20eA zR7MS+7VC7zQcBfxU7bogdcagiJUDtIMy2nq9c/HgV29JkDJqx2Gh7mK4EhK2jiRBDhb 1wYZhN19DrkTCXng8QBjY0P5Xj65ypBVzR0fcwDtmQYIhFKFsDKX222JrKldM7AXRDzV fi3Makt9uufPRGw25K+fiqT01/JYDeg2zQ+m/9GxEK6cewEw8KERes6hihv/Y9iZht7R d81A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=wQj486ULUuoPt2BE+TLpDkwbXDc8RV68zf1kmjkNS3A=; fh=M7zDVNG5wYj+Ni7TE5shUh1U8LRNWB+keJIKRth6hag=; b=PalqOMIrqwJOO/pQw1pfC3Fa9XjYcIuL8QJV1DBQh0oCBlvAkB7WEYLt+jIkooTJ3s RRhr44vesOXIYqYQzGIWSnPU4Hs8bvBY+WzjKoxb0qbYbEGVPl+CSX5ZW6Gxr4AyTAUN oMczVZ+czca8Cz9whMEj0dBbXq8YSozOXPZ0+SqxL6KuI5IWDMi12u2NOVFNrOB/n+BV mru49yM1AsHmcMdrK0wjR2OjI5u8CryKx+/wz7uN5+xUPNp3E701yNjK2NZ7EefUD5Dq JLDXbLrm88UmHCsoy6nqn8IHBhOP5egPsqt9Cy/+MdBw44SzbLPBeJGMeq84KbyBIwbv TD+w== ARC-Authentication-Results: i=1; mx.google.com; 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 k13-20020a170902c40d00b001bb974b26c4si10836494plk.238.2023.08.01.23.36.29; Tue, 01 Aug 2023 23:36:41 -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; 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 S230072AbjHBGOg (ORCPT + 99 others); Wed, 2 Aug 2023 02:14:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229545AbjHBGOf (ORCPT ); Wed, 2 Aug 2023 02:14:35 -0400 Received: from out28-171.mail.aliyun.com (out28-171.mail.aliyun.com [115.124.28.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4471E26A2 for ; Tue, 1 Aug 2023 23:14:33 -0700 (PDT) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.7543166|0.4514992;CH=green;DM=|SPAM|false|;DS=CONTINUE|ham_alarm|0.0711045-0.00413473-0.924761;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047212;MF=sunran001@208suo.com;NM=1;PH=DS;RN=5;RT=5;SR=0;TI=SMTPD_---.U6X1g.p_1690956865; Received: from localhost.localdomain(mailfrom:sunran001@208suo.com fp:SMTPD_---.U6X1g.p_1690956865) by smtp.aliyun-inc.com; Wed, 02 Aug 2023 14:14:27 +0800 From: Ran Sun To: alexander.deucher@amd.com Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Ran Sun Subject: [PATCH] drm/amd/display: Clean up errors in dc_stream.c Date: Wed, 2 Aug 2023 06:14:23 +0000 Message-Id: <20230802061423.11155-1-sunran001@208suo.com> X-Mailer: git-send-email 2.17.1 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=ham 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 Fix the following errors reported by checkpatch: ERROR: that open brace { should be on the previous line Signed-off-by: Ran Sun --- drivers/gpu/drm/amd/display/dc/core/dc_stream.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_stream.c b/drivers/gpu/drm/amd/display/dc/core/dc_stream.c index ea3d4b328e8e..05bb23bc122d 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc_stream.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc_stream.c @@ -71,8 +71,7 @@ static bool dc_stream_construct(struct dc_stream_state *stream, /* Copy audio modes */ /* TODO - Remove this translation */ - for (i = 0; i < (dc_sink_data->edid_caps.audio_mode_count); i++) - { + for (i = 0; i < (dc_sink_data->edid_caps.audio_mode_count); i++) { stream->audio_info.modes[i].channel_count = dc_sink_data->edid_caps.audio_modes[i].channel_count; stream->audio_info.modes[i].format_code = dc_sink_data->edid_caps.audio_modes[i].format_code; stream->audio_info.modes[i].sample_rates.all = dc_sink_data->edid_caps.audio_modes[i].sample_rate; -- 2.17.1