From patchwork Mon Aug 8 13:57:53 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arend van Spriel X-Patchwork-Id: 1045032 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p78E0AFn008563 for ; Mon, 8 Aug 2011 14:13:37 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752945Ab1HHN73 (ORCPT ); Mon, 8 Aug 2011 09:59:29 -0400 Received: from mms3.broadcom.com ([216.31.210.19]:3122 "EHLO MMS3.broadcom.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752554Ab1HHN7Z (ORCPT ); Mon, 8 Aug 2011 09:59:25 -0400 Received: from [10.9.200.131] by MMS3.broadcom.com with ESMTP (Broadcom SMTP Relay (Email Firewall v6.3.2)); Mon, 08 Aug 2011 07:04:24 -0700 X-Server-Uuid: B55A25B1-5D7D-41F8-BC53-C57E7AD3C201 Received: from mail-irva-13.broadcom.com (10.11.16.103) by IRVEXCHHUB01.corp.ad.broadcom.com (10.9.200.131) with Microsoft SMTP Server id 8.2.247.2; Mon, 8 Aug 2011 06:59:18 -0700 Received: from mail-sj1-12.sj.broadcom.com (mail-sj1-12.sj.broadcom.com [10.17.16.106]) by mail-irva-13.broadcom.com (Postfix) with ESMTP id 60E1974D06; Mon, 8 Aug 2011 06:59:17 -0700 (PDT) Received: from arend-laptop (unknown [10.176.68.34]) by mail-sj1-12.sj.broadcom.com (Postfix) with ESMTP id BFE042050C; Mon, 8 Aug 2011 06:59:09 -0700 (PDT) Received: from arend by arend-laptop with local (Exim 4.74) ( envelope-from ) id 1QqQMG-0004Nt-Eo; Mon, 08 Aug 2011 15:59:08 +0200 From: "Arend van Spriel" To: gregkh@suse.de cc: devel@linuxdriverproject.org, linux-wireless@vger.kernel.org, "Roland Vossen" , "Arend van Spriel" Subject: [PATCHv2 09/82] staging: brcm80211: removed function declaration typedefs from dma.h part 3 Date: Mon, 8 Aug 2011 15:57:53 +0200 Message-ID: <1312811946-16713-10-git-send-email-arend@broadcom.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1312811946-16713-1-git-send-email-arend@broadcom.com> References: <1312811946-16713-1-git-send-email-arend@broadcom.com> MIME-Version: 1.0 X-WSS-ID: 622133623KO3788516-01-01 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Mon, 08 Aug 2011 14:13:38 +0000 (UTC) From: Roland Vossen Softmac related code cleanup. Typedefs are undesirable according to the CodingStyle document. Signed-off-by: Roland Vossen Reviewed-by: Arend van Spriel Signed-off-by: Arend van Spriel --- drivers/staging/brcm80211/brcmsmac/dma.c | 8 ++++---- drivers/staging/brcm80211/brcmsmac/dma.h | 12 ++++-------- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/drivers/staging/brcm80211/brcmsmac/dma.c b/drivers/staging/brcm80211/brcmsmac/dma.c index 3e732c8d..ebc0848 100644 --- a/drivers/staging/brcm80211/brcmsmac/dma.c +++ b/drivers/staging/brcm80211/brcmsmac/dma.c @@ -404,7 +404,7 @@ const struct di_fcn_s dma64proc = { (di_peeknexttxp_t) _dma_peeknexttxp, (void (*)(struct dma_pub *)) _dma_txblock, (void (*)(struct dma_pub *)) _dma_txunblock, - (di_txactive_t) _dma_txactive, + (uint (*)(struct dma_pub *)) _dma_txactive, (void (*)(struct dma_pub *)) dma64_txrotate, (void (*)(struct dma_pub *)) _dma_rxinit, @@ -427,9 +427,9 @@ const struct di_fcn_s dma64proc = { NULL, NULL, NULL, - (di_rxactive_t) _dma_rxactive, - (di_txpending_t) _dma_txpending, - (di_txcommitted_t) _dma_txcommitted, + (uint (*)(struct dma_pub *)) _dma_rxactive, + (uint (*)(struct dma_pub *)) _dma_txpending, + (uint (*)(struct dma_pub *)) _dma_txcommitted, 39 }; diff --git a/drivers/staging/brcm80211/brcmsmac/dma.h b/drivers/staging/brcm80211/brcmsmac/dma.h index 6d6dbd8..5dc7e0b 100644 --- a/drivers/staging/brcm80211/brcmsmac/dma.h +++ b/drivers/staging/brcm80211/brcmsmac/dma.h @@ -74,7 +74,6 @@ typedef void *(*di_peeknexttxp_t) (struct dma_pub *dmah); typedef void *(*di_peeknextrxp_t) (struct dma_pub *dmah); typedef void (*di_rxparam_get_t) (struct dma_pub *dmah, u16 *rxoffset, u16 *rxbufsize); -typedef uint(*di_txactive_t) (struct dma_pub *dmah); typedef uint(*di_ctrlflags_t) (struct dma_pub *dmah, uint mask, uint flags); typedef char *(*di_dump_t) (struct dma_pub *dmah, struct brcmu_strbuf *b, bool dumpring); @@ -82,9 +81,6 @@ typedef char *(*di_dumptx_t) (struct dma_pub *dmah, struct brcmu_strbuf *b, bool dumpring); typedef char *(*di_dumprx_t) (struct dma_pub *dmah, struct brcmu_strbuf *b, bool dumpring); -typedef uint(*di_rxactive_t) (struct dma_pub *dmah); -typedef uint(*di_txpending_t) (struct dma_pub *dmah); -typedef uint(*di_txcommitted_t) (struct dma_pub *dmah); /* dma opsvec */ struct di_fcn_s { @@ -105,7 +101,7 @@ struct di_fcn_s { di_peeknexttxp_t peeknexttxp; void (*txblock) (struct dma_pub *dmah); void (*txunblock) (struct dma_pub *dmah); - di_txactive_t txactive; + uint (*txactive)(struct dma_pub *dmah); void (*txrotate) (struct dma_pub *dmah); void (*rxinit)(struct dma_pub *dmah); @@ -128,9 +124,9 @@ struct di_fcn_s { di_dump_t dump; di_dumptx_t dumptx; di_dumprx_t dumprx; - di_rxactive_t rxactive; - di_txpending_t txpending; - di_txcommitted_t txcommitted; + uint (*rxactive)(struct dma_pub *dmah); + uint (*txpending)(struct dma_pub *dmah); + uint (*txcommitted)(struct dma_pub *dmah); uint endnum; };