Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp434386rwo; Tue, 1 Aug 2023 20:49:49 -0700 (PDT) X-Google-Smtp-Source: APBJJlEStotMjvxY0Yp4oDon9ntJf2ki/GyLZHJafoDz+IWybxannTX/vBXq/+RVjURuuUOo2+Oa X-Received: by 2002:aca:110b:0:b0:3a7:49f1:1d7d with SMTP id 11-20020aca110b000000b003a749f11d7dmr4152632oir.41.1690948188841; Tue, 01 Aug 2023 20:49:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690948188; cv=none; d=google.com; s=arc-20160816; b=WgKTVZHj5mG/4Cio7jYdckigV32ay5jeIU1o4kRlb5NsvNihNrdpP9TwMdtvdrFdt+ jAZ5TUKXHKTsAuwNcDXG5LV+9971K6XUmc/kUhkqjpVI1f7rbkKlG8uEM3UTuhvBZ1YE mpm3b6AihbzdNzIkKmeoz/nz5KrXz5Fzm+ITNHYmf70Bhwdd1VWmNNZaFFyV6fgdvdlL JrD8Fbud3fEJrqebsxWoQnj8IgHltFSm1vJqq8UE2tYQKzIl/8VKDTZ4MygENXvv5OTe OG+S7wJHEMg53f26DS0zXL3IItuURDRmctzCFjcR/V7nNLjHH+o7lSwMCmQQfLaLjsdt XUcg== 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=C8b29JQhe5XM9nYspTNuffpnKjVgytt3j2XAKnse+cM=; fh=M7zDVNG5wYj+Ni7TE5shUh1U8LRNWB+keJIKRth6hag=; b=z25F7YFrBsF/hsw34Ua/vrJTcmEgUOrAh5NoiLBmsdiFACHGy70Tysq5aTNrovzj3o Hv1kP1Qbbt8EnHybqiVNPuzHHxeAGplXOZKFCYkcEKkDO2Vq6uiHvPZ0mu6tLiKELMiB dN7zm+Kt190C9blldOR+EOkKMLQl3eSr6kx1j1z3g2gPObrRmc+8kqEY9KodJpYhi7vg JwHWS8w3yVqFLcYU2/ahGMUm5/LBA3L809BwcvogiaQu/AnifzRrAl2tnDGwDA2zlT14 w1NlAsWhpDeDTETW5yShSsnsrmmXVPEZ/TEDvVFA4lkAUfro4/x8P3HrESCqRnqiCRjN bTHQ== 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 bv129-20020a632e87000000b0056482047ae0si149275pgb.723.2023.08.01.20.49.36; Tue, 01 Aug 2023 20:49:48 -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 S231681AbjHBC6Z (ORCPT + 99 others); Tue, 1 Aug 2023 22:58:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229884AbjHBC6Z (ORCPT ); Tue, 1 Aug 2023 22:58:25 -0400 Received: from out28-77.mail.aliyun.com (out28-77.mail.aliyun.com [115.124.28.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07ACDFB for ; Tue, 1 Aug 2023 19:58:23 -0700 (PDT) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.4185161|-1;BR=01201311R171S39rulernew2018_352553_221103;CH=green;DM=|CONTINUE|false|;DS=SPAM|spam_ad|0.839017-0.000101946-0.160881;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047190;MF=sunran001@208suo.com;NM=1;PH=DS;RN=5;RT=5;SR=0;TI=SMTPD_---.U6NpUjh_1690945096; Received: from localhost.localdomain(mailfrom:sunran001@208suo.com fp:SMTPD_---.U6NpUjh_1690945096) by smtp.aliyun-inc.com; Wed, 02 Aug 2023 10:58:18 +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 dcn315_smu.c Date: Wed, 2 Aug 2023 02:58:14 +0000 Message-Id: <20230802025814.10569-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_BLOCKED,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: open brace '{' following struct go on the same line ERROR: code indent should use tabs where possible Signed-off-by: Ran Sun --- .../display/dc/clk_mgr/dcn315/dcn315_smu.c | 26 +++++++++---------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn315/dcn315_smu.c b/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn315/dcn315_smu.c index 925d6e13620e..3e0da873cf4c 100644 --- a/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn315/dcn315_smu.c +++ b/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn315/dcn315_smu.c @@ -33,28 +33,26 @@ #define MAX_INSTANCE 6 #define MAX_SEGMENT 6 -struct IP_BASE_INSTANCE -{ +struct IP_BASE_INSTANCE { unsigned int segment[MAX_SEGMENT]; }; -struct IP_BASE -{ +struct IP_BASE { struct IP_BASE_INSTANCE instance[MAX_INSTANCE]; }; static const struct IP_BASE MP0_BASE = { { { { 0x00016000, 0x00DC0000, 0x00E00000, 0x00E40000, 0x0243FC00, 0 } }, - { { 0, 0, 0, 0, 0, 0 } }, - { { 0, 0, 0, 0, 0, 0 } }, - { { 0, 0, 0, 0, 0, 0 } }, - { { 0, 0, 0, 0, 0, 0 } }, - { { 0, 0, 0, 0, 0, 0 } } } }; + { { 0, 0, 0, 0, 0, 0 } }, + { { 0, 0, 0, 0, 0, 0 } }, + { { 0, 0, 0, 0, 0, 0 } }, + { { 0, 0, 0, 0, 0, 0 } }, + { { 0, 0, 0, 0, 0, 0 } } } }; static const struct IP_BASE NBIO_BASE = { { { { 0x00000000, 0x00000014, 0x00000D20, 0x00010400, 0x0241B000, 0x04040000 } }, - { { 0, 0, 0, 0, 0, 0 } }, - { { 0, 0, 0, 0, 0, 0 } }, - { { 0, 0, 0, 0, 0, 0 } }, - { { 0, 0, 0, 0, 0, 0 } }, - { { 0, 0, 0, 0, 0, 0 } } } }; + { { 0, 0, 0, 0, 0, 0 } }, + { { 0, 0, 0, 0, 0, 0 } }, + { { 0, 0, 0, 0, 0, 0 } }, + { { 0, 0, 0, 0, 0, 0 } }, + { { 0, 0, 0, 0, 0, 0 } } } }; #define regBIF_BX_PF2_RSMU_INDEX 0x0000 #define regBIF_BX_PF2_RSMU_INDEX_BASE_IDX 1 -- 2.17.1