Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp435773rwo; Tue, 1 Aug 2023 20:52:32 -0700 (PDT) X-Google-Smtp-Source: APBJJlGmVlC8VEPuvPdt7tJNxnucY9SrGSs24PQ0fmQGhG58v7HYPybvRf9jPamN/U9iHtIlsmWg X-Received: by 2002:a05:6a20:3c87:b0:137:34e1:e5b8 with SMTP id b7-20020a056a203c8700b0013734e1e5b8mr15508029pzj.50.1690948351786; Tue, 01 Aug 2023 20:52:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690948351; cv=none; d=google.com; s=arc-20160816; b=rKoEtwVxLpYC45lRZw6AKBOGxE4Ii+1TK5lDpXXdwMN4x6rJ2bhEzqVW9u7INrKXGo TqUd/suoGw8NEjsGpwQ7V9YLLsgEVFUWzfCmnHT+P8v483z36oo3l0Ugoe54KXe05e5E K1xdX6NblbU4lM/AlBSLnLDSf/mnfLyyFC0k052UnS8eE9V3lRC2ja9UGArQQUGdYApa udC6qmJGcmGeJsL/UIOXz4aM6Qysb7hY3lDj02TsPRTtnkyvy5caztgsUdZvboqe/XjZ R/usEqKq8xBBm1ofPXx10kJKByO1FMmeyAu2dtzrY558PcvMLEm+SdawNoyM1tqomos0 7HiQ== 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=3TEDaa7+n+x+wzjdrVuixfcbaveKdCpaXztmd67vJN0=; fh=M7zDVNG5wYj+Ni7TE5shUh1U8LRNWB+keJIKRth6hag=; b=FAB8LbaIhbDigXDpnYy+qbAy6S5mTmfeN3rdr4tJoVtwkoD0+12ALJxqHthil49cgU lvVthJv2U6qBFfjmt2PUx/Z3DI0GHR8nRtCAnqLgg30yJFw01KZ86lVAcb84kt/5ZfRM PtUjE7Yp6cmIfPxHsQZeyJbDS9p9BTBXE/b5Uepl6UaV71Zi7iASEMlCcnnd/NtwR7qG 6IThiJA7z0qRjZRwZOq2JT8XgrvVe4/2dP5QZJm61zEbvmmawrycXDrEtuPYJ0V+jY/f MnL0Od2y2XgR5YjDL1uuapsgX58RkSQdl4gmoVvPDjraM0tYZmvaEMQpDweZzabYQdb9 OYhw== 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 m8-20020a170902db0800b001bbd91b1e94si10446106plx.505.2023.08.01.20.52.19; Tue, 01 Aug 2023 20:52:31 -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 S230252AbjHBDDg (ORCPT + 99 others); Tue, 1 Aug 2023 23:03:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229688AbjHBDDY (ORCPT ); Tue, 1 Aug 2023 23:03:24 -0400 Received: from out28-173.mail.aliyun.com (out28-173.mail.aliyun.com [115.124.28.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3821211D for ; Tue, 1 Aug 2023 20:03:22 -0700 (PDT) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.5542499|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_system_inform|0.208758-0.000138219-0.791104;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047193;MF=sunran001@208suo.com;NM=1;PH=DS;RN=5;RT=5;SR=0;TI=SMTPD_---.U6OiUn6_1690945394; Received: from localhost.localdomain(mailfrom:sunran001@208suo.com fp:SMTPD_---.U6OiUn6_1690945394) by smtp.aliyun-inc.com; Wed, 02 Aug 2023 11:03:16 +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 dcn316_smu.c Date: Wed, 2 Aug 2023 03:03:11 +0000 Message-Id: <20230802030311.10746-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_H4,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 --- .../amd/display/dc/clk_mgr/dcn316/dcn316_smu.c | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn316/dcn316_smu.c b/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn316/dcn316_smu.c index 457a9254ae1c..3ed19197a755 100644 --- a/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn316/dcn316_smu.c +++ b/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn316/dcn316_smu.c @@ -34,23 +34,21 @@ #define MAX_INSTANCE 7 #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 } }, + { { 0, 0, 0, 0, 0, 0 } }, + { { 0, 0, 0, 0, 0, 0 } } } }; #define REG(reg_name) \ (MP0_BASE.instance[0].segment[reg ## reg_name ## _BASE_IDX] + reg ## reg_name) -- 2.17.1