aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2010-11-20 21:38:56 -0500
committerJohn W. Linville <linville@tuxdriver.com>2010-11-22 15:58:47 -0500
commit5b4bc649e18539a5d5a5482670d77f3f72de0eea (patch)
tree1e2ca90c79f7ddd0922fda06f6dfc09a5b3a0a99 /drivers
parent3370a895454ad814d0fb5f50352cea4e51d7392f (diff)
b43: Use static const
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/b43/phy_common.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/net/wireless/b43/phy_common.c b/drivers/net/wireless/b43/phy_common.c
index 7b2ea6781457..fa7f83fc8db9 100644
--- a/drivers/net/wireless/b43/phy_common.c
+++ b/drivers/net/wireless/b43/phy_common.c
@@ -427,9 +427,11 @@ void b43_phyop_switch_analog_generic(struct b43_wldev *dev, bool on)
427/* http://bcm-v4.sipsolutions.net/802.11/PHY/Cordic */ 427/* http://bcm-v4.sipsolutions.net/802.11/PHY/Cordic */
428struct b43_c32 b43_cordic(int theta) 428struct b43_c32 b43_cordic(int theta)
429{ 429{
430 u32 arctg[] = { 2949120, 1740967, 919879, 466945, 234379, 117304, 430 static const u32 arctg[] = {
431 58666, 29335, 14668, 7334, 3667, 1833, 917, 458, 431 2949120, 1740967, 919879, 466945, 234379, 117304,
432 229, 115, 57, 29, }; 432 58666, 29335, 14668, 7334, 3667, 1833,
433 917, 458, 229, 115, 57, 29,
434 };
433 u8 i; 435 u8 i;
434 s32 tmp; 436 s32 tmp;
435 s8 signx = 1; 437 s8 signx = 1;