diff options
author | Joe Perches <joe@perches.com> | 2010-12-21 05:16:08 -0500 |
---|---|---|
committer | Joe Perches <joe@perches.com> | 2010-12-21 05:16:08 -0500 |
commit | b6bc765067ece933cc3dc7f5e95665a89100b1d5 (patch) | |
tree | bbf55c2d80e839eb4c0ab23bcbdd656d14b3f5fe /drivers/net/jme.c | |
parent | 895950c2a6565d9eefda4a38b00fa28537e39fcb (diff) |
drivers/net/*.c: Use static const
Using static const generally increases object text and decreases data size.
It also generally decreases overall object size.
Signed-off-by: Joe Perches <joe@perches.com>
Diffstat (limited to 'drivers/net/jme.c')
-rw-r--r-- | drivers/net/jme.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/jme.c b/drivers/net/jme.c index 2411e72ba572..e97ebef3cf47 100644 --- a/drivers/net/jme.c +++ b/drivers/net/jme.c | |||
@@ -135,7 +135,7 @@ jme_reset_phy_processor(struct jme_adapter *jme) | |||
135 | 135 | ||
136 | static void | 136 | static void |
137 | jme_setup_wakeup_frame(struct jme_adapter *jme, | 137 | jme_setup_wakeup_frame(struct jme_adapter *jme, |
138 | u32 *mask, u32 crc, int fnr) | 138 | const u32 *mask, u32 crc, int fnr) |
139 | { | 139 | { |
140 | int i; | 140 | int i; |
141 | 141 | ||
@@ -163,7 +163,7 @@ jme_setup_wakeup_frame(struct jme_adapter *jme, | |||
163 | static inline void | 163 | static inline void |
164 | jme_reset_mac_processor(struct jme_adapter *jme) | 164 | jme_reset_mac_processor(struct jme_adapter *jme) |
165 | { | 165 | { |
166 | u32 mask[WAKEUP_FRAME_MASK_DWNR] = {0, 0, 0, 0}; | 166 | static const u32 mask[WAKEUP_FRAME_MASK_DWNR] = {0, 0, 0, 0}; |
167 | u32 crc = 0xCDCDCDCD; | 167 | u32 crc = 0xCDCDCDCD; |
168 | u32 gpreg0; | 168 | u32 gpreg0; |
169 | int i; | 169 | int i; |