From patchwork Fri Jul 14 08:06:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: shijie001@208suo.com X-Patchwork-Id: 13313515 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3249EC001B0 for ; Fri, 14 Jul 2023 11:06:47 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7938710E875; Fri, 14 Jul 2023 11:06:46 +0000 (UTC) Received: from mail.208.org (unknown [183.242.55.162]) by gabe.freedesktop.org (Postfix) with ESMTPS id C54D110E818 for ; Fri, 14 Jul 2023 08:06:21 +0000 (UTC) Received: from mail.208.org (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTP id 4R2PF60FPCzBR9sr for ; Fri, 14 Jul 2023 16:06:18 +0800 (CST) Authentication-Results: mail.208.org (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=208.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=208.org; h= content-transfer-encoding:content-type:message-id:user-agent :references:in-reply-to:subject:to:from:date:mime-version; s= dkim; t=1689321977; x=1691913978; bh=dzkqdXBCjh2/hP0nLSBmNUO8a0p M8KMO6JR7JU7+9WA=; b=pAFYueIN9JkTRCC7sXygcbgO1RcfVrRLw0yT+gN63Fw zXbzpXYwPSZel728WkxaRV8BQ4qkNFD9hD6BKDHgGdnk/WEwdTGg/svCLQCZGyQA 0h8mlJTq6jDJeCg/8wR9IvseARV5esDIZS9gixdLPTk5BjX6pz/10G1QXx889ize jo+zAYD82LvbJyc5ZW45Ex5C9i+zhfhV8XZVpzRiL/wfrflddQHBD9h/eo2q8CgS yqsYZeLN+KCZG/kgO2BNL/Vlg0xuQ4FgfV0R2rqYDkVarAQmbJB6Ev3NCPrz5aWV DrsrXAHwQqG0crA2sfHJgacxJBm+nKn1bIKgIsbQkcg== X-Virus-Scanned: amavisd-new at mail.208.org Received: from mail.208.org ([127.0.0.1]) by mail.208.org (mail.208.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id tCYOeyK16BzS for ; Fri, 14 Jul 2023 16:06:17 +0800 (CST) Received: from localhost (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTPSA id 4R2PF53MTwzBR9sg; Fri, 14 Jul 2023 16:06:17 +0800 (CST) MIME-Version: 1.0 Date: Fri, 14 Jul 2023 16:06:17 +0800 From: shijie001@208suo.com To: alexander.deucher@amd.com, Xinhui.Pan@amd.com, airlied@gmail.com, daniel@ffwll.ch Subject: [PATCH] drm/radeon: ERROR: "foo* bar" should be "foo *bar" In-Reply-To: References: User-Agent: Roundcube Webmail Message-ID: <22e66975eb7b90c1e10527cc6dd76e99@208suo.com> X-Sender: shijie001@208suo.com X-Mailman-Approved-At: Fri, 14 Jul 2023 11:06:44 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fix five occurrences of the checkpatch.pl error: ERROR: "foo* bar" should be "foo *bar" ERROR: that open brace { should be on the previous line Signed-off-by: Jie Shi Reviewed-by: Srinivasan Shanmugam Signed-off-by: Jie Shi --- drivers/gpu/drm/radeon/radeon_audio.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (0x5e30 - 0x5e00), @@ -359,7 +358,7 @@ static void radeon_audio_write_latency_fields(struct drm_encoder *encoder, radeon_encoder->audio->write_latency_fields(encoder, connector, mode); } -struct r600_audio_pin* radeon_audio_get_pin(struct drm_encoder *encoder) +struct r600_audio_pin *radeon_audio_get_pin(struct drm_encoder *encoder) { struct radeon_device *rdev = encoder->dev->dev_private; struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); @@ -526,7 +525,7 @@ static void radeon_audio_calc_cts(unsigned int clock, int *CTS, int *N, int freq *N, *CTS, freq); } -static const struct radeon_hdmi_acr* radeon_audio_acr(unsigned int clock) +static const struct radeon_hdmi_acr *radeon_audio_acr(unsigned int clock) { static struct radeon_hdmi_acr res; u8 i; diff --git a/drivers/gpu/drm/radeon/radeon_audio.c b/drivers/gpu/drm/radeon/radeon_audio.c index d6ccaf24ee0c..a010bc2c155c 100644 --- a/drivers/gpu/drm/radeon/radeon_audio.c +++ b/drivers/gpu/drm/radeon/radeon_audio.c @@ -35,15 +35,14 @@ void dce6_audio_enable(struct radeon_device *rdev, struct r600_audio_pin *pin, u8 enable_mask); -struct r600_audio_pin* r600_audio_get_pin(struct radeon_device *rdev); -struct r600_audio_pin* dce6_audio_get_pin(struct radeon_device *rdev); +struct r600_audio_pin *r600_audio_get_pin(struct radeon_device *rdev); +struct r600_audio_pin *dce6_audio_get_pin(struct radeon_device *rdev); static void radeon_audio_hdmi_mode_set(struct drm_encoder *encoder, struct drm_display_mode *mode); static void radeon_audio_dp_mode_set(struct drm_encoder *encoder, struct drm_display_mode *mode); -static const u32 pin_offsets[7] = -{ +static const u32 pin_offsets[7] = { (0x5e00 - 0x5e00), (0x5e18 - 0x5e00),