Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp5136015rwb; Mon, 31 Jul 2023 19:25:00 -0700 (PDT) X-Google-Smtp-Source: APBJJlEzl4TJWF+PjUWbK2wDFj4MuxwZaqsFrvDmxog42rrhiuPa2+HmXnmyuntIfgvR++m/Xg32 X-Received: by 2002:a2e:9c82:0:b0:2b6:e2aa:8fc2 with SMTP id x2-20020a2e9c82000000b002b6e2aa8fc2mr1149438lji.46.1690856700035; Mon, 31 Jul 2023 19:25:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690856700; cv=none; d=google.com; s=arc-20160816; b=i98T566qoPNxyv5BxGABahlCMFTQDgZ5YdnmHcKzvHmmM+5z64Nc4aE+k87bPxaOcB q5jPwOiTzmP0w/Jf7b3Ax9wW6T/qOnqNHJroMScaaicjUu5F8LH/OdkhA4DmhOGQTT+x j9nAIuV5p11JhlRn7kL9P9dokSRBFf8BM0qPF81bk0Qq6+cc7YwTfPQL1x867nbt9k+c g3hwT9/Zyj1d80SXmr5jOSHwReeo9xOdiCoKcDn39IiCVqMzll/kaiPMDQPYbFXnkwrt aG3XQ0I3uca7H4cfpEV/VHgjAOiMRFIhhEhaJJpK8wcYcsiqoNMb6iu8ujvs2DCRcLc+ 9aOA== 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=PpWvocfk1Q1zg/vhIGw0HaYSh6XPNj5TvwyK3Yeko3g=; fh=uzQ2njGvRnNicAzoECU0n2pvDAEB0craVlwUtEtLFVc=; b=MJXSQvkqY0jMzeCfIieQotRPhPWO0cP/xncLHHDrRisM6QnfRimqZg+MgqYyeEv4ra 6akLHphyCH/LNmlErzUES3+JfQV4KkBHo3vf4J7CoUCZDAtvbduYW23kVkn+9mxy/JQC IO65i5vHYG2YIdfQMWVUVVzf1t7vk14TN9YjGfNXRLSKF3FtxfmJ4+hhyyI6KNobUiFf naPpuqpIDl1t8ZGtiZmiZgKz/XTDmVevQ36RZgwwgm41jYZNqfM+00WSq2CdqYS1Gzyd MyBzRrvYwboxFZ1DSaq0HsF0OqZXdhk2wnmRpm7e6o9ANJupJ/NW4xco267Qca8AFnRI ondg== 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 pg13-20020a170907204d00b0098e0a14c670si3227060ejb.619.2023.07.31.19.24.35; Mon, 31 Jul 2023 19:25:00 -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 S229891AbjHACGj (ORCPT + 99 others); Mon, 31 Jul 2023 22:06:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229379AbjHACGi (ORCPT ); Mon, 31 Jul 2023 22:06:38 -0400 Received: from out28-149.mail.aliyun.com (out28-149.mail.aliyun.com [115.124.28.149]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 137E2103 for ; Mon, 31 Jul 2023 19:06:36 -0700 (PDT) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.08576864|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_system_inform|0.0754816-0.000674398-0.923844;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047201;MF=sunran001@208suo.com;NM=1;PH=DS;RN=7;RT=7;SR=0;TI=SMTPD_---.U5Ek3oJ_1690855589; Received: from localhost.localdomain(mailfrom:sunran001@208suo.com fp:SMTPD_---.U5Ek3oJ_1690855589) by smtp.aliyun-inc.com; Tue, 01 Aug 2023 10:06:31 +0800 From: Ran Sun To: alexander.deucher@amd.com, airlied@gmail.com, daniel@ffwll.ch Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Ran Sun Subject: [PATCH] drm/amd/pm: Clean up errors in smu_v13_0_6_ppt.c Date: Tue, 1 Aug 2023 02:06:25 +0000 Message-Id: <20230801020625.4281-1-sunran001@208suo.com> X-Mailer: git-send-email 2.17.1 X-Spam-Status: No, score=-2.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: code indent should use tabs where possible ERROR: that open brace { should be on the previous line Signed-off-by: Ran Sun --- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c index 1ac552142763..43afa1ee1b4a 100644 --- a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c +++ b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c @@ -1248,9 +1248,9 @@ static int smu_v13_0_6_get_power_limit(struct smu_context *smu, uint32_t *default_power_limit, uint32_t *max_power_limit) { - struct smu_table_context *smu_table = &smu->smu_table; - struct PPTable_t *pptable = - (struct PPTable_t *)smu_table->driver_pptable; + struct smu_table_context *smu_table = &smu->smu_table; + struct PPTable_t *pptable = + (struct PPTable_t *)smu_table->driver_pptable; uint32_t power_limit = 0; int ret; @@ -1366,8 +1366,7 @@ static int smu_v13_0_6_set_irq_state(struct amdgpu_device *adev, return 0; } -static const struct amdgpu_irq_src_funcs smu_v13_0_6_irq_funcs = -{ +static const struct amdgpu_irq_src_funcs smu_v13_0_6_irq_funcs = { .set = smu_v13_0_6_set_irq_state, .process = smu_v13_0_6_irq_process, }; -- 2.17.1