diff options
author | Joe Perches <joe@perches.com> | 2010-11-20 21:39:03 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-11-22 15:58:54 -0500 |
commit | 7253965a1cfbd22dd20f92b7a054e831777e284e (patch) | |
tree | dab2dff773a81e199630c3fc29b3a301ef3d4982 /drivers/net/wireless/zd1211rw/zd_chip.c | |
parent | f4e16e41d62ddc75704a0344567a807ebb41a929 (diff) |
zd1211rw: Use const
Mark arrays const that are unmodified after initializations.
text data bss dec hex filename
19291 56 4136 23483 5bbb drivers/net/wireless/zd1211rw/zd_chip.o.old
19291 56 4136 23483 5bbb drivers/net/wireless/zd1211rw/zd_chip.o.new
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/zd1211rw/zd_chip.c')
-rw-r--r-- | drivers/net/wireless/zd1211rw/zd_chip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/zd1211rw/zd_chip.c b/drivers/net/wireless/zd1211rw/zd_chip.c index 87a95bcfee57..30f8d404958b 100644 --- a/drivers/net/wireless/zd1211rw/zd_chip.c +++ b/drivers/net/wireless/zd1211rw/zd_chip.c | |||
@@ -1448,7 +1448,7 @@ int zd_rfwritev_locked(struct zd_chip *chip, | |||
1448 | */ | 1448 | */ |
1449 | int zd_rfwrite_cr_locked(struct zd_chip *chip, u32 value) | 1449 | int zd_rfwrite_cr_locked(struct zd_chip *chip, u32 value) |
1450 | { | 1450 | { |
1451 | struct zd_ioreq16 ioreqs[] = { | 1451 | const struct zd_ioreq16 ioreqs[] = { |
1452 | { CR244, (value >> 16) & 0xff }, | 1452 | { CR244, (value >> 16) & 0xff }, |
1453 | { CR243, (value >> 8) & 0xff }, | 1453 | { CR243, (value >> 8) & 0xff }, |
1454 | { CR242, value & 0xff }, | 1454 | { CR242, value & 0xff }, |
@@ -1475,7 +1475,7 @@ int zd_rfwritev_cr_locked(struct zd_chip *chip, | |||
1475 | int zd_chip_set_multicast_hash(struct zd_chip *chip, | 1475 | int zd_chip_set_multicast_hash(struct zd_chip *chip, |
1476 | struct zd_mc_hash *hash) | 1476 | struct zd_mc_hash *hash) |
1477 | { | 1477 | { |
1478 | struct zd_ioreq32 ioreqs[] = { | 1478 | const struct zd_ioreq32 ioreqs[] = { |
1479 | { CR_GROUP_HASH_P1, hash->low }, | 1479 | { CR_GROUP_HASH_P1, hash->low }, |
1480 | { CR_GROUP_HASH_P2, hash->high }, | 1480 | { CR_GROUP_HASH_P2, hash->high }, |
1481 | }; | 1481 | }; |