Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp5227443rwb; Mon, 31 Jul 2023 21:46:35 -0700 (PDT) X-Google-Smtp-Source: APBJJlFqBxxo4k0U9cDttEet77qLRjVhybgLUpu6yPTiK0UI+/YL24lkhVASVEFEG6iKSswnOW3M X-Received: by 2002:a17:902:c106:b0:1ae:10b3:61e9 with SMTP id 6-20020a170902c10600b001ae10b361e9mr10746339pli.65.1690865194797; Mon, 31 Jul 2023 21:46:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690865194; cv=none; d=google.com; s=arc-20160816; b=j8QQotrznWLbcxjq4DZkAORFOT1USYA303YMxpwhaPPa0xL8PJlpBSPlgdrmFCMnJj hiiKcXHCqpPziw8BUcxAUvzPoaHvcDigt7NXI6gy1CLHWOH5p6RI6LsDb5uQnl1CgRZM HwgvLTs7WPOSrV6P5L3P8douhk+Cj5IR2dLlgSsDzFvBkbQmCjbReXZSjwWXYP5naxSZ fEIxmbQX6HXd8jMqhDoK+pRBgejNg+AvJI75KkLFBJNdTba25rPBCivPzFXeCEe022/1 TG+awTD0NyaYD1YAvk38jgiy28pshdXXrFZEOA3JVpRbFV5cDL+54z8xp/dK7Jab5CU/ DO+A== 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=8NUlQ/x2rXq9U1E3wADrYflYUwjT5M6PKY5jqx8eGZg=; fh=uzQ2njGvRnNicAzoECU0n2pvDAEB0craVlwUtEtLFVc=; b=l8pJMrZIA3pFRICVWr1w2N3eV+Wz6ZPolyeDKO22vzG8AQ1JDOEhsJ4d8mDPsI7vW6 bpG3PGFLznGYgJfeGiLAFf8BTm5Ta12IiZAb5XexisTvWLjoc8YQaRZlhD/1DwhjHFo0 x13Gv1k6OZ/4/7m0cTgzCYbIJ4WgtClSx0tzMPGuead8PVE8DeEThcUV4PCDFToJCRzP qcAH2Vo5szRNNN1Vom9wq961ccK0c3J9MlzTJQhFP5LllWNsg77EWkqfQhz+mY3Fgy6v gplSKvv4Lgo8k1rJjODggT1+fHXnvsmcwXs4tz3N5+AogGwPaTQ6dqZsPT1Zn7N41WYZ jmww== 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 y12-20020a1709029b8c00b001aaea258805si8314637plp.134.2023.07.31.21.46.22; Mon, 31 Jul 2023 21:46:34 -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 S231704AbjHADJG (ORCPT + 99 others); Mon, 31 Jul 2023 23:09:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229810AbjHADJD (ORCPT ); Mon, 31 Jul 2023 23:09:03 -0400 Received: from out28-147.mail.aliyun.com (out28-147.mail.aliyun.com [115.124.28.147]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0167F19B0 for ; Mon, 31 Jul 2023 20:09:00 -0700 (PDT) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.07528824|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_system_inform|0.00859234-0.000375804-0.991032;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047187;MF=sunran001@208suo.com;NM=1;PH=DS;RN=7;RT=7;SR=0;TI=SMTPD_---.U5IZH8f_1690859332; Received: from localhost.localdomain(mailfrom:sunran001@208suo.com fp:SMTPD_---.U5IZH8f_1690859332) by smtp.aliyun-inc.com; Tue, 01 Aug 2023 11:08:55 +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 smu10_hwmgr.c Date: Tue, 1 Aug 2023 03:08:51 +0000 Message-Id: <20230801030851.5158-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: spaces required around that '=' (ctx:VxW) ERROR: space required after that ',' (ctx:VxV) Signed-off-by: Ran Sun --- .../gpu/drm/amd/pm/powerplay/hwmgr/smu10_hwmgr.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu10_hwmgr.c b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu10_hwmgr.c index 86d6e88c7386..02ba68d7c654 100644 --- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu10_hwmgr.c +++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu10_hwmgr.c @@ -430,37 +430,37 @@ static int smu10_apply_state_adjust_rules(struct pp_hwmgr *hwmgr, } /* temporary hardcoded clock voltage breakdown tables */ -static const DpmClock_t VddDcfClk[]= { +static const DpmClock_t VddDcfClk[] = { { 300, 2600}, { 600, 3200}, { 600, 3600}, }; -static const DpmClock_t VddSocClk[]= { +static const DpmClock_t VddSocClk[] = { { 478, 2600}, { 722, 3200}, { 722, 3600}, }; -static const DpmClock_t VddFClk[]= { +static const DpmClock_t VddFClk[] = { { 400, 2600}, {1200, 3200}, {1200, 3600}, }; -static const DpmClock_t VddDispClk[]= { +static const DpmClock_t VddDispClk[] = { { 435, 2600}, { 661, 3200}, {1086, 3600}, }; -static const DpmClock_t VddDppClk[]= { +static const DpmClock_t VddDppClk[] = { { 435, 2600}, { 661, 3200}, { 661, 3600}, }; -static const DpmClock_t VddPhyClk[]= { +static const DpmClock_t VddPhyClk[] = { { 540, 2600}, { 810, 3200}, { 810, 3600}, @@ -1358,7 +1358,7 @@ static int smu10_set_watermarks_for_clocks_ranges(struct pp_hwmgr *hwmgr, struct amdgpu_device *adev = hwmgr->adev; int i; - smu_set_watermarks_for_clocks_ranges(table,wm_with_clock_ranges); + smu_set_watermarks_for_clocks_ranges(table, wm_with_clock_ranges); if (adev->apu_flags & AMD_APU_IS_RAVEN2) { for (i = 0; i < NUM_WM_RANGES; i++) @@ -1461,7 +1461,7 @@ static int smu10_get_power_profile_mode(struct pp_hwmgr *hwmgr, char *buf) phm_get_sysfs_buf(&buf, &size); - size += sysfs_emit_at(buf, size, "%s %16s %s %s %s %s\n",title[0], + size += sysfs_emit_at(buf, size, "%s %16s %s %s %s %s\n", title[0], title[1], title[2], title[3], title[4], title[5]); for (i = 0; i <= PP_SMC_POWER_PROFILE_COMPUTE; i++) -- 2.17.1