Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp3224997rwb; Mon, 7 Aug 2023 10:01:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGufB0xfBU0HgeP4510MgSUU8fN3vCunbbZ25s3L58bHC23moCAkeVA/b1oAFuUlqmTtG79 X-Received: by 2002:a17:903:32d1:b0:1bb:9675:8c06 with SMTP id i17-20020a17090332d100b001bb96758c06mr9343577plr.35.1691427667786; Mon, 07 Aug 2023 10:01:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691427667; cv=none; d=google.com; s=arc-20160816; b=kx3kRRjT57itTlj3jKRpmsDCifCTg6gW85Cqz92drAjBlbOhZdgxlgtq9SYajTtOfu m7Mxy+mBCbIUsXXBHfFyqNPna4y3A1v2ktpvTExhcB+UIC87THqonKSZyqre9RLEh6z0 r62DZGpuKSgpu2AHaRRp9Y1lIB1keKDROuDmUGpyHPBFyBqzvQYKFfQVnLUTJiJN6Crg Raek3FnLNCYmOdUYa8Jcijp0qWaK+GQYhsP6V/TW6sc4UaSL7lT8mYlg0iKFdkpn8uju bT/plIa2XnFJR+k6dBpt5K4PHC5NwbagXHceeLFCB0lPeH99dzgxzsGmuSvvwApcrBW6 Rt6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=yaPYaqaFDCU5jC3MKKmSmMMn4YAXxnsQcK9wgpCcRQ4=; fh=t+hei0m6FWvWE3h8ROlSj5pw/xTY3yBXufxuldTsP1A=; b=AqU5gWL05pXBSLopsTSwC++7SpRDhMwooTzlyBYNgw5Bdgm1rPZDiABUeg2stGAAnu l2TQEhQ+14fpiXTPcB0lUfJ5kz36Wc+nmcQUUuoyljWE9m7pGxy2iYZlFOTSsvchQu/r wD7S543yOsPGQEmX75UJ5InYij6CnjkSN/Lvv0asxX7MwJQl/mvSpoPHs4+KFOoxlwlx CIJdmONgWHDwK69FG2m5LxkV3FLfjDsJre5FESxosnTVF2JG9GkNUmHNleJFcZTQ/a1l IIv7GzbEkxwOuAVGLx72M8U/Vz/Z2d6+ZGQ5t/yGK/tBxLpo6hKNbpgQTnGtM3j72cs0 yZwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=gBxDE02r; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p18-20020a170902c71200b001b7fa1a9a36si3587444plp.67.2023.08.07.10.00.50; Mon, 07 Aug 2023 10:01:07 -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; dkim=pass header.i=@gmail.com header.s=20221208 header.b=gBxDE02r; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230299AbjHGQkp (ORCPT + 99 others); Mon, 7 Aug 2023 12:40:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229804AbjHGQkn (ORCPT ); Mon, 7 Aug 2023 12:40:43 -0400 Received: from mail-ot1-x32f.google.com (mail-ot1-x32f.google.com [IPv6:2607:f8b0:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 915C61BDC for ; Mon, 7 Aug 2023 09:40:37 -0700 (PDT) Received: by mail-ot1-x32f.google.com with SMTP id 46e09a7af769-6bc93523162so4050827a34.2 for ; Mon, 07 Aug 2023 09:40:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691426437; x=1692031237; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=yaPYaqaFDCU5jC3MKKmSmMMn4YAXxnsQcK9wgpCcRQ4=; b=gBxDE02r5V+myaSbv5/I3zVBzUL6Y08FjzDWLGY9Mn1YOGOSKFx8fQc7Q/GLfqsByL v6l002Y37dfvGCR2gZPbCX+vEfczWF2x04zGPK0ZcEI0tz94dVQOvoDRXQaLGL1uSZLn JT9lPQ1FeDUMW1cS+wMR3rL6KcPf0lyoIrUU+tL+JoClm9BbxUgOzuuAoCxd9dGCqBlI QhD73bDMegwqAgjPMxPrf9/+GWBZrKU15hLCJN0k6XAVRawYtdCZ/nYL4fsJFxyMIqc1 nWghePP92IQP0v3yXuVaUsGwxiptE83Xk/RwWv+2mv0AIb92L3RjmP0bweW2mfaSKQNV 4wWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691426437; x=1692031237; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=yaPYaqaFDCU5jC3MKKmSmMMn4YAXxnsQcK9wgpCcRQ4=; b=AWobcsUfGqvdwNZXBjBw/NpKe7kdbbfMsmirFAPbcfUAH08zPU2W3xHyfv2yxqAAGc pNHChRN3bml9ordaFr5iaaT7/Pf4LI1xG32mUGAPLJxEzh68F7S/2DUwIRky+61SLjtK 7G5km8C5k8SMS2cGtIly08oBkO+5zMKm5nnjqxqA8yOmRdw9+smfsN1XN6XC0DHWOtTg nw8vFociO/nVvTPgmvPBuLWfQsZynkwDRcbzfyjlVXjswMpOgGLjnkOrz2Ql1ztAZjVM NZ6/mkQ7WP15b/DcuMLNcpDX0bqvTxNQ/Hs8pFI05g59HnthbuHvYYUeyIUgZ5kyyjVs q8xw== X-Gm-Message-State: AOJu0YzB1uWeD7tT6noa6Hpih4ZRUjGWik6ndJNDmMwKnSW7aeT9+NCW VWkYg2JgUhOB3W83/2MtVFeSsna78v2xTTYVqVg= X-Received: by 2002:a05:6870:8a14:b0:1be:c87d:c670 with SMTP id p20-20020a0568708a1400b001bec87dc670mr11199409oaq.47.1691426436882; Mon, 07 Aug 2023 09:40:36 -0700 (PDT) MIME-Version: 1.0 References: <20230801091906.7270-1-sunran001@208suo.com> In-Reply-To: <20230801091906.7270-1-sunran001@208suo.com> From: Alex Deucher Date: Mon, 7 Aug 2023 12:40:25 -0400 Message-ID: Subject: Re: [PATCH] drm/amd: Clean up errors in vega10_processpptables.c To: Ran Sun Cc: alexander.deucher@amd.com, airlied@gmail.com, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS 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 Applied. Thanks! On Tue, Aug 1, 2023 at 5:19=E2=80=AFAM Ran Sun wrote= : > > Fix the following errors reported by checkpatch: > > ERROR: "foo* bar" should be "foo *bar" > ERROR: space required before the open brace '{' > ERROR: space required before the open parenthesis '(' > > Signed-off-by: Ran Sun > --- > .../gpu/drm/amd/pm/powerplay/hwmgr/vega10_processpptables.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_processpptable= s.c b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_processpptables.c > index bb90d8abf79b..3be616af327e 100644 > --- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_processpptables.c > +++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_processpptables.c > @@ -372,9 +372,9 @@ static int get_mm_clock_voltage_table( > return 0; > } > > -static void get_scl_sda_value(uint8_t line, uint8_t *scl, uint8_t* sda) > +static void get_scl_sda_value(uint8_t line, uint8_t *scl, uint8_t *sda) > { > - switch(line){ > + switch (line) { > case Vega10_I2CLineID_DDC1: > *scl =3D Vega10_I2C_DDC1CLK; > *sda =3D Vega10_I2C_DDC1DATA; > @@ -954,7 +954,7 @@ static int init_powerplay_extended_tables( > if (!result && powerplay_table->usPixclkDependencyTableOffset) > result =3D get_pix_clk_voltage_dependency_table(hwmgr, > &pp_table_info->vdd_dep_on_pixclk, > - (const ATOM_Vega10_PIXCLK_Dependency_Tabl= e*) > + (const ATOM_Vega10_PIXCLK_Dependency_Tabl= e *) > pixclk_dep_table); > > if (!result && powerplay_table->usPhyClkDependencyTableOffset) > -- > 2.17.1 >