Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 150431
b: refs/heads/master
c: e70a5ac
h: refs/heads/master
i:
  150429: e767dd9
  150427: 63964ac
  150423: 984e484
  150415: 32c6836
  150399: 18e263d
v: v3
  • Loading branch information
Bing Zhao authored and John W. Linville committed May 22, 2009
1 parent f918cee commit 9ab152f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 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: ea2d06395b6de717a5e0c4b6e55f3047cae2131f
refs/heads/master: e70a5ac5d27166cfe5bfbe8f63017af3b09d72ce
18 changes: 9 additions & 9 deletions trunk/drivers/net/wireless/libertas/if_sdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,19 +66,19 @@ struct if_sdio_model {
static struct if_sdio_model if_sdio_models[] = {
{
/* 8385 */
.model = 0x04,
.model = IF_SDIO_MODEL_8385,
.helper = "sd8385_helper.bin",
.firmware = "sd8385.bin",
},
{
/* 8686 */
.model = 0x0B,
.model = IF_SDIO_MODEL_8686,
.helper = "sd8686_helper.bin",
.firmware = "sd8686.bin",
},
{
/* 8688 */
.model = 0x10,
.model = IF_SDIO_MODEL_8688,
.helper = "sd8688_helper.bin",
.firmware = "sd8688.bin",
},
Expand Down Expand Up @@ -118,7 +118,7 @@ static u16 if_sdio_read_scratch(struct if_sdio_card *card, int *err)
int ret, reg;
u16 scratch;

if (card->model == 0x04)
if (card->model == IF_SDIO_MODEL_8385)
reg = IF_SDIO_SCRATCH_OLD;
else
reg = IF_SDIO_SCRATCH;
Expand Down Expand Up @@ -216,7 +216,7 @@ static int if_sdio_handle_event(struct if_sdio_card *card,

lbs_deb_enter(LBS_DEB_SDIO);

if (card->model == 0x04) {
if (card->model == IF_SDIO_MODEL_8385) {
event = sdio_readb(card->func, IF_SDIO_EVENT, &ret);
if (ret)
goto out;
Expand Down Expand Up @@ -829,10 +829,10 @@ static int if_sdio_probe(struct sdio_func *func,
if (sscanf(func->card->info[i],
"ID: %x", &model) == 1)
break;
if (!strcmp(func->card->info[i], "IBIS Wireless SDIO Card")) {
model = 4;
break;
}
if (!strcmp(func->card->info[i], "IBIS Wireless SDIO Card")) {
model = IF_SDIO_MODEL_8385;
break;
}
}

if (i == func->card->num_info) {
Expand Down
4 changes: 4 additions & 0 deletions trunk/drivers/net/wireless/libertas/if_sdio.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
#ifndef _LBS_IF_SDIO_H
#define _LBS_IF_SDIO_H

#define IF_SDIO_MODEL_8385 0x04
#define IF_SDIO_MODEL_8686 0x0b
#define IF_SDIO_MODEL_8688 0x10

#define IF_SDIO_IOPORT 0x00

#define IF_SDIO_H_INT_MASK 0x04
Expand Down

0 comments on commit 9ab152f

Please sign in to comment.