diff options
author | David S. Miller <davem@davemloft.net> | 2008-07-18 05:39:39 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-07-18 05:39:39 -0400 |
commit | 49997d75152b3d23c53b0fa730599f2f74c92c65 (patch) | |
tree | 46e93126170d02cfec9505172e545732c1b69656 /drivers/net/wireless | |
parent | a0c80b80e0fb48129e4e9d6a9ede914f9ff1850d (diff) | |
parent | 5b664cb235e97afbf34db9c4d77f08ebd725335e (diff) |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/torvalds/linux-2.6
Conflicts:
Documentation/powerpc/booting-without-of.txt
drivers/atm/Makefile
drivers/net/fs_enet/fs_enet-main.c
drivers/pci/pci-acpi.c
net/8021q/vlan.c
net/iucv/iucv.c
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/atmel.c | 6 | ||||
-rw-r--r-- | drivers/net/wireless/libertas/if_cs.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/libertas/if_sdio.c | 24 | ||||
-rw-r--r-- | drivers/net/wireless/libertas/if_usb.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/p54/p54usb.c | 5 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00.h | 4 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00pci.h | 2 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt61pci.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt73usb.c | 6 | ||||
-rw-r--r-- | drivers/net/wireless/zd1201.c | 2 |
10 files changed, 27 insertions, 32 deletions
diff --git a/drivers/net/wireless/atmel.c b/drivers/net/wireless/atmel.c index 28b6ff3eaa37..bd35bb0a1480 100644 --- a/drivers/net/wireless/atmel.c +++ b/drivers/net/wireless/atmel.c | |||
@@ -559,7 +559,7 @@ static const struct { | |||
559 | static void build_wpa_mib(struct atmel_private *priv); | 559 | static void build_wpa_mib(struct atmel_private *priv); |
560 | static int atmel_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); | 560 | static int atmel_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); |
561 | static void atmel_copy_to_card(struct net_device *dev, u16 dest, | 561 | static void atmel_copy_to_card(struct net_device *dev, u16 dest, |
562 | unsigned char *src, u16 len); | 562 | const unsigned char *src, u16 len); |
563 | static void atmel_copy_to_host(struct net_device *dev, unsigned char *dest, | 563 | static void atmel_copy_to_host(struct net_device *dev, unsigned char *dest, |
564 | u16 src, u16 len); | 564 | u16 src, u16 len); |
565 | static void atmel_set_gcr(struct net_device *dev, u16 mask); | 565 | static void atmel_set_gcr(struct net_device *dev, u16 mask); |
@@ -3855,7 +3855,7 @@ static int reset_atmel_card(struct net_device *dev) | |||
3855 | if (priv->card_type == CARD_TYPE_EEPROM) { | 3855 | if (priv->card_type == CARD_TYPE_EEPROM) { |
3856 | /* copy in firmware if needed */ | 3856 | /* copy in firmware if needed */ |
3857 | const struct firmware *fw_entry = NULL; | 3857 | const struct firmware *fw_entry = NULL; |
3858 | unsigned char *fw; | 3858 | const unsigned char *fw; |
3859 | int len = priv->firmware_length; | 3859 | int len = priv->firmware_length; |
3860 | if (!(fw = priv->firmware)) { | 3860 | if (!(fw = priv->firmware)) { |
3861 | if (priv->firmware_type == ATMEL_FW_TYPE_NONE) { | 3861 | if (priv->firmware_type == ATMEL_FW_TYPE_NONE) { |
@@ -4122,7 +4122,7 @@ static void atmel_writeAR(struct net_device *dev, u16 data) | |||
4122 | } | 4122 | } |
4123 | 4123 | ||
4124 | static void atmel_copy_to_card(struct net_device *dev, u16 dest, | 4124 | static void atmel_copy_to_card(struct net_device *dev, u16 dest, |
4125 | unsigned char *src, u16 len) | 4125 | const unsigned char *src, u16 len) |
4126 | { | 4126 | { |
4127 | int i; | 4127 | int i; |
4128 | atmel_writeAR(dev, dest); | 4128 | atmel_writeAR(dev, dest); |
diff --git a/drivers/net/wireless/libertas/if_cs.c b/drivers/net/wireless/libertas/if_cs.c index cc70d53fadd3..04d7a251e3f0 100644 --- a/drivers/net/wireless/libertas/if_cs.c +++ b/drivers/net/wireless/libertas/if_cs.c | |||
@@ -122,7 +122,7 @@ static inline void if_cs_write16(struct if_cs_card *card, uint reg, u16 val) | |||
122 | static inline void if_cs_write16_rep( | 122 | static inline void if_cs_write16_rep( |
123 | struct if_cs_card *card, | 123 | struct if_cs_card *card, |
124 | uint reg, | 124 | uint reg, |
125 | void *buf, | 125 | const void *buf, |
126 | unsigned long count) | 126 | unsigned long count) |
127 | { | 127 | { |
128 | if (debug_output) | 128 | if (debug_output) |
diff --git a/drivers/net/wireless/libertas/if_sdio.c b/drivers/net/wireless/libertas/if_sdio.c index 51f664bbee9d..b54e2ea8346b 100644 --- a/drivers/net/wireless/libertas/if_sdio.c +++ b/drivers/net/wireless/libertas/if_sdio.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * linux/drivers/net/wireless/libertas/if_sdio.c | 2 | * linux/drivers/net/wireless/libertas/if_sdio.c |
3 | * | 3 | * |
4 | * Copyright 2007 Pierre Ossman | 4 | * Copyright 2007-2008 Pierre Ossman |
5 | * | 5 | * |
6 | * Inspired by if_cs.c, Copyright 2007 Holger Schurig | 6 | * Inspired by if_cs.c, Copyright 2007 Holger Schurig |
7 | * | 7 | * |
@@ -266,13 +266,10 @@ static int if_sdio_card_to_host(struct if_sdio_card *card) | |||
266 | 266 | ||
267 | /* | 267 | /* |
268 | * The transfer must be in one transaction or the firmware | 268 | * The transfer must be in one transaction or the firmware |
269 | * goes suicidal. | 269 | * goes suicidal. There's no way to guarantee that for all |
270 | * controllers, but we can at least try. | ||
270 | */ | 271 | */ |
271 | chunk = size; | 272 | chunk = sdio_align_size(card->func, size); |
272 | if ((chunk > card->func->cur_blksize) || (chunk > 512)) { | ||
273 | chunk = (chunk + card->func->cur_blksize - 1) / | ||
274 | card->func->cur_blksize * card->func->cur_blksize; | ||
275 | } | ||
276 | 273 | ||
277 | ret = sdio_readsb(card->func, card->buffer, card->ioport, chunk); | 274 | ret = sdio_readsb(card->func, card->buffer, card->ioport, chunk); |
278 | if (ret) | 275 | if (ret) |
@@ -392,7 +389,7 @@ static int if_sdio_prog_helper(struct if_sdio_card *card) | |||
392 | unsigned long timeout; | 389 | unsigned long timeout; |
393 | u8 *chunk_buffer; | 390 | u8 *chunk_buffer; |
394 | u32 chunk_size; | 391 | u32 chunk_size; |
395 | u8 *firmware; | 392 | const u8 *firmware; |
396 | size_t size; | 393 | size_t size; |
397 | 394 | ||
398 | lbs_deb_enter(LBS_DEB_SDIO); | 395 | lbs_deb_enter(LBS_DEB_SDIO); |
@@ -508,7 +505,7 @@ static int if_sdio_prog_real(struct if_sdio_card *card) | |||
508 | unsigned long timeout; | 505 | unsigned long timeout; |
509 | u8 *chunk_buffer; | 506 | u8 *chunk_buffer; |
510 | u32 chunk_size; | 507 | u32 chunk_size; |
511 | u8 *firmware; | 508 | const u8 *firmware; |
512 | size_t size, req_size; | 509 | size_t size, req_size; |
513 | 510 | ||
514 | lbs_deb_enter(LBS_DEB_SDIO); | 511 | lbs_deb_enter(LBS_DEB_SDIO); |
@@ -696,13 +693,10 @@ static int if_sdio_host_to_card(struct lbs_private *priv, | |||
696 | 693 | ||
697 | /* | 694 | /* |
698 | * The transfer must be in one transaction or the firmware | 695 | * The transfer must be in one transaction or the firmware |
699 | * goes suicidal. | 696 | * goes suicidal. There's no way to guarantee that for all |
697 | * controllers, but we can at least try. | ||
700 | */ | 698 | */ |
701 | size = nb + 4; | 699 | size = sdio_align_size(card->func, nb + 4); |
702 | if ((size > card->func->cur_blksize) || (size > 512)) { | ||
703 | size = (size + card->func->cur_blksize - 1) / | ||
704 | card->func->cur_blksize * card->func->cur_blksize; | ||
705 | } | ||
706 | 700 | ||
707 | packet = kzalloc(sizeof(struct if_sdio_packet) + size, | 701 | packet = kzalloc(sizeof(struct if_sdio_packet) + size, |
708 | GFP_ATOMIC); | 702 | GFP_ATOMIC); |
diff --git a/drivers/net/wireless/libertas/if_usb.c b/drivers/net/wireless/libertas/if_usb.c index a8b4abce5bfa..632c291404ab 100644 --- a/drivers/net/wireless/libertas/if_usb.c +++ b/drivers/net/wireless/libertas/if_usb.c | |||
@@ -310,7 +310,7 @@ static void if_usb_disconnect(struct usb_interface *intf) | |||
310 | static int if_usb_send_fw_pkt(struct if_usb_card *cardp) | 310 | static int if_usb_send_fw_pkt(struct if_usb_card *cardp) |
311 | { | 311 | { |
312 | struct fwdata *fwdata = cardp->ep_out_buf; | 312 | struct fwdata *fwdata = cardp->ep_out_buf; |
313 | uint8_t *firmware = cardp->fw->data; | 313 | const uint8_t *firmware = cardp->fw->data; |
314 | 314 | ||
315 | /* If we got a CRC failure on the last block, back | 315 | /* If we got a CRC failure on the last block, back |
316 | up and retry it */ | 316 | up and retry it */ |
@@ -768,7 +768,7 @@ static int if_usb_issue_boot_command(struct if_usb_card *cardp, int ivalue) | |||
768 | * len image length | 768 | * len image length |
769 | * @return 0 or -1 | 769 | * @return 0 or -1 |
770 | */ | 770 | */ |
771 | static int check_fwfile_format(uint8_t *data, uint32_t totlen) | 771 | static int check_fwfile_format(const uint8_t *data, uint32_t totlen) |
772 | { | 772 | { |
773 | uint32_t bincmd, exit; | 773 | uint32_t bincmd, exit; |
774 | uint32_t blksize, offset, len; | 774 | uint32_t blksize, offset, len; |
diff --git a/drivers/net/wireless/p54/p54usb.c b/drivers/net/wireless/p54/p54usb.c index 1610a7308c1d..815c095ef797 100644 --- a/drivers/net/wireless/p54/p54usb.c +++ b/drivers/net/wireless/p54/p54usb.c | |||
@@ -376,7 +376,8 @@ static int p54u_upload_firmware_3887(struct ieee80211_hw *dev) | |||
376 | const struct firmware *fw_entry = NULL; | 376 | const struct firmware *fw_entry = NULL; |
377 | int err, alen; | 377 | int err, alen; |
378 | u8 carry = 0; | 378 | u8 carry = 0; |
379 | u8 *buf, *tmp, *data; | 379 | u8 *buf, *tmp; |
380 | const u8 *data; | ||
380 | unsigned int left, remains, block_size; | 381 | unsigned int left, remains, block_size; |
381 | struct x2_header *hdr; | 382 | struct x2_header *hdr; |
382 | unsigned long timeout; | 383 | unsigned long timeout; |
@@ -523,7 +524,7 @@ static int p54u_upload_firmware_net2280(struct ieee80211_hw *dev) | |||
523 | void *buf; | 524 | void *buf; |
524 | __le32 reg; | 525 | __le32 reg; |
525 | unsigned int remains, offset; | 526 | unsigned int remains, offset; |
526 | u8 *data; | 527 | const u8 *data; |
527 | 528 | ||
528 | buf = kmalloc(512, GFP_KERNEL); | 529 | buf = kmalloc(512, GFP_KERNEL); |
529 | if (!buf) { | 530 | if (!buf) { |
diff --git a/drivers/net/wireless/rt2x00/rt2x00.h b/drivers/net/wireless/rt2x00/rt2x00.h index 9fab0df18c3c..07b03b3c7ef1 100644 --- a/drivers/net/wireless/rt2x00/rt2x00.h +++ b/drivers/net/wireless/rt2x00/rt2x00.h | |||
@@ -487,8 +487,8 @@ struct rt2x00lib_ops { | |||
487 | */ | 487 | */ |
488 | int (*probe_hw) (struct rt2x00_dev *rt2x00dev); | 488 | int (*probe_hw) (struct rt2x00_dev *rt2x00dev); |
489 | char *(*get_firmware_name) (struct rt2x00_dev *rt2x00dev); | 489 | char *(*get_firmware_name) (struct rt2x00_dev *rt2x00dev); |
490 | u16 (*get_firmware_crc) (void *data, const size_t len); | 490 | u16 (*get_firmware_crc) (const void *data, const size_t len); |
491 | int (*load_firmware) (struct rt2x00_dev *rt2x00dev, void *data, | 491 | int (*load_firmware) (struct rt2x00_dev *rt2x00dev, const void *data, |
492 | const size_t len); | 492 | const size_t len); |
493 | 493 | ||
494 | /* | 494 | /* |
diff --git a/drivers/net/wireless/rt2x00/rt2x00pci.h b/drivers/net/wireless/rt2x00/rt2x00pci.h index 50c6df4f81db..80bf97c03e2d 100644 --- a/drivers/net/wireless/rt2x00/rt2x00pci.h +++ b/drivers/net/wireless/rt2x00/rt2x00pci.h | |||
@@ -82,7 +82,7 @@ static inline void rt2x00pci_register_write(struct rt2x00_dev *rt2x00dev, | |||
82 | static inline void | 82 | static inline void |
83 | rt2x00pci_register_multiwrite(struct rt2x00_dev *rt2x00dev, | 83 | rt2x00pci_register_multiwrite(struct rt2x00_dev *rt2x00dev, |
84 | const unsigned long offset, | 84 | const unsigned long offset, |
85 | void *value, const u16 length) | 85 | const void *value, const u16 length) |
86 | { | 86 | { |
87 | memcpy_toio(rt2x00dev->csr.base + offset, value, length); | 87 | memcpy_toio(rt2x00dev->csr.base + offset, value, length); |
88 | } | 88 | } |
diff --git a/drivers/net/wireless/rt2x00/rt61pci.c b/drivers/net/wireless/rt2x00/rt61pci.c index 70ef7bf434ab..f7c1f92c1448 100644 --- a/drivers/net/wireless/rt2x00/rt61pci.c +++ b/drivers/net/wireless/rt2x00/rt61pci.c | |||
@@ -926,7 +926,7 @@ static char *rt61pci_get_firmware_name(struct rt2x00_dev *rt2x00dev) | |||
926 | return fw_name; | 926 | return fw_name; |
927 | } | 927 | } |
928 | 928 | ||
929 | static u16 rt61pci_get_firmware_crc(void *data, const size_t len) | 929 | static u16 rt61pci_get_firmware_crc(const void *data, const size_t len) |
930 | { | 930 | { |
931 | u16 crc; | 931 | u16 crc; |
932 | 932 | ||
@@ -943,7 +943,7 @@ static u16 rt61pci_get_firmware_crc(void *data, const size_t len) | |||
943 | return crc; | 943 | return crc; |
944 | } | 944 | } |
945 | 945 | ||
946 | static int rt61pci_load_firmware(struct rt2x00_dev *rt2x00dev, void *data, | 946 | static int rt61pci_load_firmware(struct rt2x00_dev *rt2x00dev, const void *data, |
947 | const size_t len) | 947 | const size_t len) |
948 | { | 948 | { |
949 | int i; | 949 | int i; |
diff --git a/drivers/net/wireless/rt2x00/rt73usb.c b/drivers/net/wireless/rt2x00/rt73usb.c index 34c6ff27afc4..d383735ab8f2 100644 --- a/drivers/net/wireless/rt2x00/rt73usb.c +++ b/drivers/net/wireless/rt2x00/rt73usb.c | |||
@@ -867,7 +867,7 @@ static char *rt73usb_get_firmware_name(struct rt2x00_dev *rt2x00dev) | |||
867 | return FIRMWARE_RT2571; | 867 | return FIRMWARE_RT2571; |
868 | } | 868 | } |
869 | 869 | ||
870 | static u16 rt73usb_get_firmware_crc(void *data, const size_t len) | 870 | static u16 rt73usb_get_firmware_crc(const void *data, const size_t len) |
871 | { | 871 | { |
872 | u16 crc; | 872 | u16 crc; |
873 | 873 | ||
@@ -884,13 +884,13 @@ static u16 rt73usb_get_firmware_crc(void *data, const size_t len) | |||
884 | return crc; | 884 | return crc; |
885 | } | 885 | } |
886 | 886 | ||
887 | static int rt73usb_load_firmware(struct rt2x00_dev *rt2x00dev, void *data, | 887 | static int rt73usb_load_firmware(struct rt2x00_dev *rt2x00dev, const void *data, |
888 | const size_t len) | 888 | const size_t len) |
889 | { | 889 | { |
890 | unsigned int i; | 890 | unsigned int i; |
891 | int status; | 891 | int status; |
892 | u32 reg; | 892 | u32 reg; |
893 | char *ptr = data; | 893 | const char *ptr = data; |
894 | char *cache; | 894 | char *cache; |
895 | int buflen; | 895 | int buflen; |
896 | 896 | ||
diff --git a/drivers/net/wireless/zd1201.c b/drivers/net/wireless/zd1201.c index 07e4d1f73207..b16ec6e5f0e3 100644 --- a/drivers/net/wireless/zd1201.c +++ b/drivers/net/wireless/zd1201.c | |||
@@ -49,7 +49,7 @@ MODULE_DEVICE_TABLE(usb, zd1201_table); | |||
49 | static int zd1201_fw_upload(struct usb_device *dev, int apfw) | 49 | static int zd1201_fw_upload(struct usb_device *dev, int apfw) |
50 | { | 50 | { |
51 | const struct firmware *fw_entry; | 51 | const struct firmware *fw_entry; |
52 | char *data; | 52 | const char *data; |
53 | unsigned long len; | 53 | unsigned long len; |
54 | int err; | 54 | int err; |
55 | unsigned char ret; | 55 | unsigned char ret; |