Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp4049940rwn; Sun, 11 Sep 2022 04:13:15 -0700 (PDT) X-Google-Smtp-Source: AA6agR7zy6Tvh0slezvL4aq4iM+DPhDDcrrBuL1ZM7HB4pk0WfcAZqjxe1DtIKgJku53NoVlw4ZZ X-Received: by 2002:a17:90b:17c3:b0:202:bc13:e4e7 with SMTP id me3-20020a17090b17c300b00202bc13e4e7mr4076292pjb.125.1662894795342; Sun, 11 Sep 2022 04:13:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662894795; cv=none; d=google.com; s=arc-20160816; b=bZ0O3yMigj+W5Cn9WXZvWtIvDpSm+AwiRFFGZU+8MFWyEN8s3MEnUNvDhPXdu5RhsX EVUohCmrhacvJPpu9S4XidXU+ACMpxY8h7eJ7Od3icZ8AFUKXlhSqq+hTcDlTzobC21Y uIjKTaOUnkMHqH5pzcktzB9q9Oclt7upaUDXr/ddGtBaP7rkfATcXnJULvHsGUWFrbvI kY54By4j7E/RCuz68EIjd5glaBFip4QHJwywHRpf3pMCpvoP4dj/xxENrlcw6ts4c5td 9cdJ7lfeOdHbhJ/DqHo0PUDzsuXD/pAhEv4Q0jIbFsP75K8WEPpZxUE1sVF4DlXzG8ks LoTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:to:from:date:dkim-signature; bh=/BEKoYFEaG0AJXKvbQY58i8UsnsML/dixE5FP50Uz/g=; b=CoWeLrs3dPFTlq9RhlX0gXuEE+aYiiZVaPIDuWa2lpsF+IgeGjIef8Vy3ro6C4OTDi GgMP+YnwyTVaNlscCEGHX6IvJZkMu+SnPSY/bhwcpnfxpfg2QbcM56ORzaQh0XTVpIO4 9vrbMNrqgMMENcgwzGicACbUynsUIFlB7ICoKz0gPEr6Kscc0UAAC5lPEvOQdYiONIQo QF2RdCSM/riael4IOpcgsVBe3zXdt5KgQmBYW7w1hHbtn+MqAtDuSZfOxqHq9feYw0Ms VSNO3AL9zKx6PZap8O4mtLcaLOVIwzLmyWUXH82feIdykF2nJcnuMtE5xt+1fZu/DyK0 QXig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=CRO7b5Nn; 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 i69-20020a638748000000b0043898414330si3012414pge.164.2022.09.11.04.12.51; Sun, 11 Sep 2022 04:13:15 -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=20210112 header.b=CRO7b5Nn; 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 S230266AbiIKKr6 (ORCPT + 99 others); Sun, 11 Sep 2022 06:47:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230315AbiIKKrc (ORCPT ); Sun, 11 Sep 2022 06:47:32 -0400 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 55EF92AE28 for ; Sun, 11 Sep 2022 03:47:31 -0700 (PDT) Received: by mail-wr1-x433.google.com with SMTP id bq9so10913259wrb.4 for ; Sun, 11 Sep 2022 03:47:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:from:date:from:to:cc:subject:date; bh=/BEKoYFEaG0AJXKvbQY58i8UsnsML/dixE5FP50Uz/g=; b=CRO7b5Nn3zhP7tHDNii1L8x22na9nhVm0a6PvDyHXkMY1T2q+KAOnmB0QlwkiyN6Mb RdgLYWJ0XV5CtS1iDIJQ5XgCjp/+f6mRR1bIdsDMxgBtR6JoObKo82H+KD6gx2KgO2J5 DxnYMvQXcOEaaXJJoQ3fGhVQNPJdmk55YXnVnzqr8SVbVaPIOowuJqU/P5/qFIxnyACA WXEq9IFo8rqoCvQXD+s1Hu3w6GKRT5PAX8phNlrE07SZt+60pRn9IKWxOmuHxr9/N2H0 XX9V5Tc8bx3tUDKqU14Zq2C4YpnHEYQOOqpuTRfp2YgX0jNbk5/kgoq+fSX+7v5nv5mP PhyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:from:date:x-gm-message-state:from:to:cc:subject:date; bh=/BEKoYFEaG0AJXKvbQY58i8UsnsML/dixE5FP50Uz/g=; b=yIaIZrowrGxaz7URnQu06QAL8Bs/55W9BKO/QtIpf81ntnMDEIKwJR48qf/5WHGsXt FOSEhOaGvNSCrbmV+wzaGlPz8rZDDe816CQYsgQOOgT2YbJkWymw7NvBXvJELvwiyhu2 vFRbMuWCLxajCr9Sm5Ozwt94Gpvx1y7+7JKZ8sVBUtTDey29fqKOFpPgKwUgf4pSospA yFlbrSwTBX+oeZsS8SxPQnQGzWF5s2L361syX2tBFcXcWFdQ5es3fJn5gVCb5qoymoS2 Ra+XLmdp4L2BZoTRKPoCmgjFzozMnb/gfKlRKVqqNygjlcZ85ilezsaxP/RWYALtIci0 QkUA== X-Gm-Message-State: ACgBeo0hhTBw+TSutCteUVpv/gbltq5XsWhRv1ZWAs9rq0ZL7PeVQcoV ND723oK1ka0uPwZUhSpsADk= X-Received: by 2002:a05:6000:1090:b0:228:a963:3641 with SMTP id y16-20020a056000109000b00228a9633641mr12660582wrw.289.1662893250958; Sun, 11 Sep 2022 03:47:30 -0700 (PDT) Received: from matrix-ESPRIMO-P710 (p57ba2cf5.dip0.t-ipconnect.de. [87.186.44.245]) by smtp.gmail.com with ESMTPSA id ay3-20020a05600c1e0300b003b339438733sm6264012wmb.19.2022.09.11.03.47.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Sep 2022 03:47:30 -0700 (PDT) Date: Sun, 11 Sep 2022 12:47:29 +0200 From: Philipp Hortmann To: Forest Bond , Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 12/12] staging: vt6655: Rename function MACvSetCurrAC0DescAddrEx Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Rename function MACvSetCurrAC0DescAddrEx to vt6655_mac_set_curr_ac_0... to avoid CamelCase which is not accepted by checkpatch.pl. Remove unnecessary declaration of function and make function static. Remove unnecessary line break. Signed-off-by: Philipp Hortmann --- drivers/staging/vt6655/mac.c | 5 ++--- drivers/staging/vt6655/mac.h | 2 -- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/staging/vt6655/mac.c b/drivers/staging/vt6655/mac.c index 2fbee8508f0e..b4ebc7d31961 100644 --- a/drivers/staging/vt6655/mac.c +++ b/drivers/staging/vt6655/mac.c @@ -630,8 +630,7 @@ static void vt6655_mac_set_curr_tx_0_desc_addr_ex(struct vnt_private *priv, u32 * */ /* TxDMA1 = AC0DMA */ -void MACvSetCurrAC0DescAddrEx(struct vnt_private *priv, - u32 curr_desc_addr) +static void vt6655_mac_set_curr_ac_0_desc_addr_ex(struct vnt_private *priv, u32 curr_desc_addr) { void __iomem *io_base = priv->port_offset; unsigned short ww; @@ -655,7 +654,7 @@ void MACvSetCurrAC0DescAddrEx(struct vnt_private *priv, void vt6655_mac_set_curr_tx_desc_addr(int tx_type, struct vnt_private *priv, u32 curr_desc_addr) { if (tx_type == TYPE_AC0DMA) - MACvSetCurrAC0DescAddrEx(priv, curr_desc_addr); + vt6655_mac_set_curr_ac_0_desc_addr_ex(priv, curr_desc_addr); else if (tx_type == TYPE_TXDMA0) vt6655_mac_set_curr_tx_0_desc_addr_ex(priv, curr_desc_addr); } diff --git a/drivers/staging/vt6655/mac.h b/drivers/staging/vt6655/mac.h index 3fbb891ac57c..acf931c3f5fd 100644 --- a/drivers/staging/vt6655/mac.h +++ b/drivers/staging/vt6655/mac.h @@ -559,8 +559,6 @@ void MACvInitialize(struct vnt_private *priv); void vt6655_mac_set_curr_rx_0_desc_addr(struct vnt_private *priv, u32 curr_desc_addr); void vt6655_mac_set_curr_rx_1_desc_addr(struct vnt_private *priv, u32 curr_desc_addr); void vt6655_mac_set_curr_tx_desc_addr(int tx_type, struct vnt_private *priv, u32 curr_desc_addr); -void MACvSetCurrAC0DescAddrEx(struct vnt_private *priv, - u32 curr_desc_addr); void MACvSetCurrSyncDescAddrEx(struct vnt_private *priv, u32 curr_desc_addr); void MACvSetCurrATIMDescAddrEx(struct vnt_private *priv, -- 2.37.3