From patchwork Sat Oct 3 19:30:24 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Malcolm Priestley X-Patchwork-Id: 7322341 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 39553BEEA4 for ; Sat, 3 Oct 2015 19:30:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 534BC20592 for ; Sat, 3 Oct 2015 19:30:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5D1DC2055C for ; Sat, 3 Oct 2015 19:30:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751077AbbJCTax (ORCPT ); Sat, 3 Oct 2015 15:30:53 -0400 Received: from mail-wi0-f170.google.com ([209.85.212.170]:33817 "EHLO mail-wi0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750877AbbJCTan (ORCPT ); Sat, 3 Oct 2015 15:30:43 -0400 Received: by wicfx3 with SMTP id fx3so71872002wic.1 for ; Sat, 03 Oct 2015 12:30:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=3azG64zddz1aIojUWqr2mp8jgF5JTFOtnV2e0nyx9kk=; b=KVe+5JCUV9eOkn/Y/koh3HYmc9ItmSU2snh8txRulB6xvtmaw+DagfYSzVQJYC4ZR0 Cbi1ERGhusL240Tm7rmcKNGc+/TBb+ttfuTPoSahj9fT7CMsczYCvfqjTccSx7h6DT1d nZMZWnRlOU/IC68lnuvyOIL41udbt5l3SU9T2MKabEqp4/b2I9gSnJZnXHKCeVKNT4LF QPgaAQ6yq7Mx0CpVpyhNxpXypkfppDJzGij+17R1XdcTNk0tYk7JqowStEX/enOLherp phahzg50+Wt2F3MdDt7gpvQJQz7cPZk1154wGT48npW23CREA386oGS/wfK3cCPPl0DT xsug== X-Received: by 10.180.109.135 with SMTP id hs7mr3962189wib.12.1443900642264; Sat, 03 Oct 2015 12:30:42 -0700 (PDT) Received: from tipsey.3.home (188.30.130.225.threembb.co.uk. [188.30.130.225]) by smtp.gmail.com with ESMTPSA id uq5sm17886714wjc.3.2015.10.03.12.30.41 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 03 Oct 2015 12:30:41 -0700 (PDT) From: Malcolm Priestley To: gregkh@linuxfoundation.org Cc: linux-wireless@vger.kernel.org, Malcolm Priestley Subject: [PATCH 3/6] staging: vt6655: device_alloc_rx_buf replace pRDInfo with rd_info. Date: Sat, 3 Oct 2015 20:30:24 +0100 Message-Id: <1443900627-2924-3-git-send-email-tvboxspy@gmail.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1443900627-2924-1-git-send-email-tvboxspy@gmail.com> References: <1443900627-2924-1-git-send-email-tvboxspy@gmail.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Removing camel case. Signed-off-by: Malcolm Priestley --- drivers/staging/vt6655/device_main.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/vt6655/device_main.c b/drivers/staging/vt6655/device_main.c index 41c08b3..b330379 100644 --- a/drivers/staging/vt6655/device_main.c +++ b/drivers/staging/vt6655/device_main.c @@ -732,15 +732,15 @@ static int device_rx_srv(struct vnt_private *priv, unsigned int uIdx) static bool device_alloc_rx_buf(struct vnt_private *priv, struct vnt_rx_desc *pRD) { - struct vnt_rd_info *pRDInfo = pRD->rd_info; + struct vnt_rd_info *rd_info = pRD->rd_info; - pRDInfo->skb = dev_alloc_skb((int)priv->rx_buf_sz); - if (pRDInfo->skb == NULL) + rd_info->skb = dev_alloc_skb((int)priv->rx_buf_sz); + if (rd_info->skb == NULL) return false; - pRDInfo->skb_dma = + rd_info->skb_dma = dma_map_single(&priv->pcid->dev, - skb_put(pRDInfo->skb, skb_tailroom(pRDInfo->skb)), + skb_put(rd_info->skb, skb_tailroom(rd_info->skb)), priv->rx_buf_sz, DMA_FROM_DEVICE); *((unsigned int *)&pRD->rd0) = 0; /* FIX cast */ @@ -748,7 +748,7 @@ static bool device_alloc_rx_buf(struct vnt_private *priv, pRD->rd0.res_count = cpu_to_le16(priv->rx_buf_sz); pRD->rd0.owner = OWNED_BY_NIC; pRD->rd1.req_count = cpu_to_le16(priv->rx_buf_sz); - pRD->buff_addr = cpu_to_le32(pRDInfo->skb_dma); + pRD->buff_addr = cpu_to_le32(rd_info->skb_dma); return true; }