Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 236176
b: refs/heads/master
c: 44bb83a
h: refs/heads/master
v: v3
  • Loading branch information
Arend van Spriel authored and Greg Kroah-Hartman committed Mar 1, 2011
1 parent 9d79fdd commit a676b26
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 12bacc1bce320e43b4a6fd1195980a355823127d
refs/heads/master: 44bb83af01dcbfd3982af0f4ef4dec916ab04168
26 changes: 13 additions & 13 deletions trunk/drivers/staging/brcm80211/brcmsmac/wl_mac80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
#include "wl_mac80211.h"

static void wl_timer(unsigned long data);
static void _wl_timer(wl_timer_t *t);
static void _wl_timer(struct wl_timer *t);


static int ieee_hw_init(struct ieee80211_hw *hw);
Expand Down Expand Up @@ -1342,7 +1342,7 @@ module_exit(wl_module_exit);
*/
static void wl_free(struct wl_info *wl)
{
wl_timer_t *t, *next;
struct wl_timer *t, *next;
struct osl_info *osh;

ASSERT(wl);
Expand Down Expand Up @@ -1601,13 +1601,13 @@ static void BCMFASTPATH wl_dpc(unsigned long data)
*/
static void wl_timer(unsigned long data)
{
_wl_timer((wl_timer_t *) data);
_wl_timer((struct wl_timer *) data);
}

/*
* precondition: perimeter lock is not acquired
*/
static void _wl_timer(wl_timer_t *t)
static void _wl_timer(struct wl_timer *t)
{
WL_LOCK(t->wl);

Expand All @@ -1634,18 +1634,18 @@ static void _wl_timer(wl_timer_t *t)
*
* precondition: perimeter lock has been acquired
*/
wl_timer_t *wl_init_timer(struct wl_info *wl, void (*fn) (void *arg), void *arg,
const char *name)
struct wl_timer *wl_init_timer(struct wl_info *wl, void (*fn) (void *arg),
void *arg, const char *name)
{
wl_timer_t *t;
struct wl_timer *t;

t = kmalloc(sizeof(wl_timer_t), GFP_ATOMIC);
t = kmalloc(sizeof(struct wl_timer), GFP_ATOMIC);
if (!t) {
WL_ERROR("wl%d: wl_init_timer: out of memory\n", wl->pub->unit);
return 0;
}

memset(t, 0, sizeof(wl_timer_t));
memset(t, 0, sizeof(struct wl_timer));

init_timer(&t->timer);
t->timer.data = (unsigned long) t;
Expand All @@ -1670,7 +1670,7 @@ wl_timer_t *wl_init_timer(struct wl_info *wl, void (*fn) (void *arg), void *arg,
*
* precondition: perimeter lock has been acquired
*/
void wl_add_timer(struct wl_info *wl, wl_timer_t *t, uint ms, int periodic)
void wl_add_timer(struct wl_info *wl, struct wl_timer *t, uint ms, int periodic)
{
#ifdef BCMDBG
if (t->set) {
Expand All @@ -1694,7 +1694,7 @@ void wl_add_timer(struct wl_info *wl, wl_timer_t *t, uint ms, int periodic)
*
* precondition: perimeter lock has been acquired
*/
bool wl_del_timer(struct wl_info *wl, wl_timer_t *t)
bool wl_del_timer(struct wl_info *wl, struct wl_timer *t)
{
if (t->set) {
t->set = false;
Expand All @@ -1710,9 +1710,9 @@ bool wl_del_timer(struct wl_info *wl, wl_timer_t *t)
/*
* precondition: perimeter lock has been acquired
*/
void wl_free_timer(struct wl_info *wl, wl_timer_t *t)
void wl_free_timer(struct wl_info *wl, struct wl_timer *t)
{
wl_timer_t *tmp;
struct wl_timer *tmp;

/* delete the timer in case it is active */
wl_del_timer(wl, t);
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/staging/brcm80211/brcmsmac/wl_mac80211.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* sleep so perimeter lock has to be a semaphore instead of spinlock. This requires timers to be
* submitted to workqueue instead of being on kernel timer
*/
typedef struct wl_timer {
struct wl_timer {
struct timer_list timer;
struct wl_info *wl;
void (*fn) (void *);
Expand All @@ -33,7 +33,7 @@ typedef struct wl_timer {
#ifdef BCMDBG
char *name; /* Description of the timer */
#endif
} wl_timer_t;
};

struct wl_if {
uint subunit; /* WDS/BSS unit */
Expand Down

0 comments on commit a676b26

Please sign in to comment.