Commit 2f26e8afb22d79f655def146894595a39aeea1f8
Committed by
David Woodhouse
1 parent
8b72eb4333
Exists in
master
and in
7 other branches
atmel: treat firmware data as const
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Showing 1 changed file with 3 additions and 3 deletions Side-by-side Diff
drivers/net/wireless/atmel.c
... | ... | @@ -560,7 +560,7 @@ |
560 | 560 | static void build_wpa_mib(struct atmel_private *priv); |
561 | 561 | static int atmel_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); |
562 | 562 | static void atmel_copy_to_card(struct net_device *dev, u16 dest, |
563 | - unsigned char *src, u16 len); | |
563 | + const unsigned char *src, u16 len); | |
564 | 564 | static void atmel_copy_to_host(struct net_device *dev, unsigned char *dest, |
565 | 565 | u16 src, u16 len); |
566 | 566 | static void atmel_set_gcr(struct net_device *dev, u16 mask); |
... | ... | @@ -3853,7 +3853,7 @@ |
3853 | 3853 | if (priv->card_type == CARD_TYPE_EEPROM) { |
3854 | 3854 | /* copy in firmware if needed */ |
3855 | 3855 | const struct firmware *fw_entry = NULL; |
3856 | - unsigned char *fw; | |
3856 | + const unsigned char *fw; | |
3857 | 3857 | int len = priv->firmware_length; |
3858 | 3858 | if (!(fw = priv->firmware)) { |
3859 | 3859 | if (priv->firmware_type == ATMEL_FW_TYPE_NONE) { |
... | ... | @@ -4120,7 +4120,7 @@ |
4120 | 4120 | } |
4121 | 4121 | |
4122 | 4122 | static void atmel_copy_to_card(struct net_device *dev, u16 dest, |
4123 | - unsigned char *src, u16 len) | |
4123 | + const unsigned char *src, u16 len) | |
4124 | 4124 | { |
4125 | 4125 | int i; |
4126 | 4126 | atmel_writeAR(dev, dest); |