b43: Use static const
authorJoe Perches <joe@perches.com>
Sun, 21 Nov 2010 02:38:56 +0000 (18:38 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 22 Nov 2010 20:58:47 +0000 (15:58 -0500)
Using static const generally increases object text and decreases data size.
It also generally decreases overall object size.

   text    data     bss     dec     hex filename
   5502      56    1336    6894    1aee drivers/net/wireless/b43/phy_common.o.new
   5511      56    1336    6903    1af7 drivers/net/wireless/b43/phy_common.o.old

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/b43/phy_common.c

index 7b2ea67814574152009f654c60c7a60771d7d189..fa7f83fc8db97df7fd8f30a69d02fb8b103f51dd 100644 (file)
@@ -427,9 +427,11 @@ void b43_phyop_switch_analog_generic(struct b43_wldev *dev, bool on)
 /* http://bcm-v4.sipsolutions.net/802.11/PHY/Cordic */
 struct b43_c32 b43_cordic(int theta)
 {
-       u32 arctg[] = { 2949120, 1740967, 919879, 466945, 234379, 117304,
-                     58666, 29335, 14668, 7334, 3667, 1833, 917, 458,
-                     229, 115, 57, 29, };
+       static const u32 arctg[] = {
+               2949120, 1740967, 919879, 466945, 234379, 117304,
+                 58666,   29335,  14668,   7334,   3667,   1833,
+                   917,     458,    229,    115,     57,     29,
+       };
        u8 i;
        s32 tmp;
        s8 signx = 1;