Commit 93682c22 authored by Roland Vossen's avatar Roland Vossen Committed by Greg Kroah-Hartman

staging: brcm80211: removed function declaration typedefs from dma.h part 2

Softmac related code cleanup. Typedefs are undesirable according to the
CodingStyle document.
Signed-off-by: default avatarRoland Vossen <rvossen@broadcom.com>
Reviewed-by: default avatarArend van Spriel <arend@broadcom.com>
Signed-off-by: default avatarArend van Spriel <arend@broadcom.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent d47369d4
...@@ -389,16 +389,16 @@ static inline u32 parity32(u32 data); ...@@ -389,16 +389,16 @@ static inline u32 parity32(u32 data);
const struct di_fcn_s dma64proc = { const struct di_fcn_s dma64proc = {
(void (*)(struct dma_pub *)) _dma_detach, (void (*)(struct dma_pub *)) _dma_detach,
(void (*)(struct dma_pub *)) dma64_txinit, (void (*)(struct dma_pub *)) dma64_txinit,
(di_txreset_t) dma64_txreset, (bool(*)(struct dma_pub *)) dma64_txreset,
(di_txenabled_t) dma64_txenabled, (bool(*)(struct dma_pub *)) dma64_txenabled,
(void (*)(struct dma_pub *)) dma64_txsuspend, (void (*)(struct dma_pub *)) dma64_txsuspend,
(void (*)(struct dma_pub *)) dma64_txresume, (void (*)(struct dma_pub *)) dma64_txresume,
(di_txsuspended_t) dma64_txsuspended, (bool(*)(struct dma_pub *)) dma64_txsuspended,
(di_txsuspendedidle_t) dma64_txsuspendedidle, (bool(*)(struct dma_pub *)) dma64_txsuspendedidle,
(di_txfast_t) dma64_txfast, (di_txfast_t) dma64_txfast,
(di_txunframed_t) dma64_txunframed, (di_txunframed_t) dma64_txunframed,
(di_getpos_t) dma64_getpos, (di_getpos_t) dma64_getpos,
(di_txstopped_t) dma64_txstopped, (bool(*)(struct dma_pub *)) dma64_txstopped,
(di_txreclaim_t) dma64_txreclaim, (di_txreclaim_t) dma64_txreclaim,
(di_getnexttxp_t) dma64_getnexttxp, (di_getnexttxp_t) dma64_getnexttxp,
(di_peeknexttxp_t) _dma_peeknexttxp, (di_peeknexttxp_t) _dma_peeknexttxp,
...@@ -408,13 +408,13 @@ const struct di_fcn_s dma64proc = { ...@@ -408,13 +408,13 @@ const struct di_fcn_s dma64proc = {
(void (*)(struct dma_pub *)) dma64_txrotate, (void (*)(struct dma_pub *)) dma64_txrotate,
(void (*)(struct dma_pub *)) _dma_rxinit, (void (*)(struct dma_pub *)) _dma_rxinit,
(di_rxreset_t) dma64_rxreset, (bool(*)(struct dma_pub *)) dma64_rxreset,
(di_rxidle_t) dma64_rxidle, (bool(*)(struct dma_pub *)) dma64_rxidle,
(di_rxstopped_t) dma64_rxstopped, (bool(*)(struct dma_pub *)) dma64_rxstopped,
(di_rxenable_t) _dma_rxenable, (bool(*)(struct dma_pub *)) _dma_rxenable,
(di_rxenabled_t) dma64_rxenabled, (bool(*)(struct dma_pub *)) dma64_rxenabled,
(di_rx_t) _dma_rx, (di_rx_t) _dma_rx,
(di_rxfill_t) _dma_rxfill, (bool(*)(struct dma_pub *)) _dma_rxfill,
(void (*)(struct dma_pub *)) _dma_rxreclaim, (void (*)(struct dma_pub *)) _dma_rxreclaim,
(di_getnextrxp_t) _dma_getnextrxp, (di_getnextrxp_t) _dma_getnextrxp,
(di_peeknextrxp_t) _dma_peeknextrxp, (di_peeknextrxp_t) _dma_peeknextrxp,
......
...@@ -59,23 +59,12 @@ enum txd_range { ...@@ -59,23 +59,12 @@ enum txd_range {
}; };
/* dma function type */ /* dma function type */
typedef bool(*di_txreset_t) (struct dma_pub *dmah);
typedef bool(*di_rxreset_t) (struct dma_pub *dmah);
typedef bool(*di_rxidle_t) (struct dma_pub *dmah);
typedef bool(*di_txenabled_t) (struct dma_pub *dmah);
typedef bool(*di_txsuspended_t) (struct dma_pub *dmah);
typedef bool(*di_txsuspendedidle_t) (struct dma_pub *dmah);
typedef int (*di_txfast_t) (struct dma_pub *dmah, struct sk_buff *p, typedef int (*di_txfast_t) (struct dma_pub *dmah, struct sk_buff *p,
bool commit); bool commit);
typedef int (*di_txunframed_t) (struct dma_pub *dmah, void *p, uint len, typedef int (*di_txunframed_t) (struct dma_pub *dmah, void *p, uint len,
bool commit); bool commit);
typedef void *(*di_getpos_t) (struct dma_pub *di, bool direction); typedef void *(*di_getpos_t) (struct dma_pub *di, bool direction);
typedef bool(*di_txstopped_t) (struct dma_pub *dmah);
typedef bool(*di_rxstopped_t) (struct dma_pub *dmah);
typedef bool(*di_rxenable_t) (struct dma_pub *dmah);
typedef bool(*di_rxenabled_t) (struct dma_pub *dmah);
typedef void *(*di_rx_t) (struct dma_pub *dmah); typedef void *(*di_rx_t) (struct dma_pub *dmah);
typedef bool(*di_rxfill_t) (struct dma_pub *dmah);
typedef void (*di_txreclaim_t) (struct dma_pub *dmah, enum txd_range range); typedef void (*di_txreclaim_t) (struct dma_pub *dmah, enum txd_range range);
typedef unsigned long (*di_getvar_t) (struct dma_pub *dmah, typedef unsigned long (*di_getvar_t) (struct dma_pub *dmah,
const char *name); const char *name);
...@@ -101,16 +90,16 @@ typedef uint(*di_txcommitted_t) (struct dma_pub *dmah); ...@@ -101,16 +90,16 @@ typedef uint(*di_txcommitted_t) (struct dma_pub *dmah);
struct di_fcn_s { struct di_fcn_s {
void (*detach)(struct dma_pub *dmah); void (*detach)(struct dma_pub *dmah);
void (*txinit)(struct dma_pub *dmah); void (*txinit)(struct dma_pub *dmah);
di_txreset_t txreset; bool (*txreset)(struct dma_pub *dmah);
di_txenabled_t txenabled; bool (*txenabled)(struct dma_pub *dmah);
void (*txsuspend)(struct dma_pub *dmah); void (*txsuspend)(struct dma_pub *dmah);
void (*txresume)(struct dma_pub *dmah); void (*txresume)(struct dma_pub *dmah);
di_txsuspended_t txsuspended; bool (*txsuspended)(struct dma_pub *dmah);
di_txsuspendedidle_t txsuspendedidle; bool (*txsuspendedidle)(struct dma_pub *dmah);
di_txfast_t txfast; di_txfast_t txfast;
di_txunframed_t txunframed; di_txunframed_t txunframed;
di_getpos_t getpos; di_getpos_t getpos;
di_txstopped_t txstopped; bool (*txstopped)(struct dma_pub *dmah);
di_txreclaim_t txreclaim; di_txreclaim_t txreclaim;
di_getnexttxp_t getnexttxp; di_getnexttxp_t getnexttxp;
di_peeknexttxp_t peeknexttxp; di_peeknexttxp_t peeknexttxp;
...@@ -120,13 +109,13 @@ struct di_fcn_s { ...@@ -120,13 +109,13 @@ struct di_fcn_s {
void (*txrotate) (struct dma_pub *dmah); void (*txrotate) (struct dma_pub *dmah);
void (*rxinit)(struct dma_pub *dmah); void (*rxinit)(struct dma_pub *dmah);
di_rxreset_t rxreset; bool (*rxreset)(struct dma_pub *dmah);
di_rxidle_t rxidle; bool (*rxidle)(struct dma_pub *dmah);
di_rxstopped_t rxstopped; bool (*rxstopped)(struct dma_pub *dmah);
di_rxenable_t rxenable; bool (*rxenable)(struct dma_pub *dmah);
di_rxenabled_t rxenabled; bool (*rxenabled)(struct dma_pub *dmah);
di_rx_t rx; di_rx_t rx;
di_rxfill_t rxfill; bool (*rxfill)(struct dma_pub *dmah);
void (*rxreclaim)(struct dma_pub *dmah); void (*rxreclaim)(struct dma_pub *dmah);
di_getnextrxp_t getnextrxp; di_getnextrxp_t getnextrxp;
di_peeknextrxp_t peeknextrxp; di_peeknextrxp_t peeknextrxp;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment