aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/main.c
diff options
context:
space:
mode:
authorDenis Cheng <crquan@gmail.com>2007-09-02 06:30:18 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:51:15 -0400
commitff8ac60948ba819b89e9c87083e8050fc2f89999 (patch)
tree611975d22d7ddd8c49a073c61e6e4b7c9523fedb /drivers/net/wireless/libertas/main.c
parent10d024c1b2fd58af8362670d7d6e5ae52fc33353 (diff)
drivers/net/: all drivers/net/ cleanup with ARRAY_SIZE
Signed-off-by: Denis Cheng <crquan@gmail.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/wireless/libertas/main.c')
-rw-r--r--drivers/net/wireless/libertas/main.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/net/wireless/libertas/main.c b/drivers/net/wireless/libertas/main.c
index cb0359df355e..a54171af7b97 100644
--- a/drivers/net/wireless/libertas/main.c
+++ b/drivers/net/wireless/libertas/main.c
@@ -123,28 +123,28 @@ struct region_cfp_table {
123static struct region_cfp_table region_cfp_table[] = { 123static struct region_cfp_table region_cfp_table[] = {
124 {0x10, /*US FCC */ 124 {0x10, /*US FCC */
125 channel_freq_power_US_BG, 125 channel_freq_power_US_BG,
126 sizeof(channel_freq_power_US_BG) / sizeof(struct chan_freq_power), 126 ARRAY_SIZE(channel_freq_power_US_BG),
127 } 127 }
128 , 128 ,
129 {0x20, /*CANADA IC */ 129 {0x20, /*CANADA IC */
130 channel_freq_power_US_BG, 130 channel_freq_power_US_BG,
131 sizeof(channel_freq_power_US_BG) / sizeof(struct chan_freq_power), 131 ARRAY_SIZE(channel_freq_power_US_BG),
132 } 132 }
133 , 133 ,
134 {0x30, /*EU*/ channel_freq_power_EU_BG, 134 {0x30, /*EU*/ channel_freq_power_EU_BG,
135 sizeof(channel_freq_power_EU_BG) / sizeof(struct chan_freq_power), 135 ARRAY_SIZE(channel_freq_power_EU_BG),
136 } 136 }
137 , 137 ,
138 {0x31, /*SPAIN*/ channel_freq_power_SPN_BG, 138 {0x31, /*SPAIN*/ channel_freq_power_SPN_BG,
139 sizeof(channel_freq_power_SPN_BG) / sizeof(struct chan_freq_power), 139 ARRAY_SIZE(channel_freq_power_SPN_BG),
140 } 140 }
141 , 141 ,
142 {0x32, /*FRANCE*/ channel_freq_power_FR_BG, 142 {0x32, /*FRANCE*/ channel_freq_power_FR_BG,
143 sizeof(channel_freq_power_FR_BG) / sizeof(struct chan_freq_power), 143 ARRAY_SIZE(channel_freq_power_FR_BG),
144 } 144 }
145 , 145 ,
146 {0x40, /*JAPAN*/ channel_freq_power_JPN_BG, 146 {0x40, /*JAPAN*/ channel_freq_power_JPN_BG,
147 sizeof(channel_freq_power_JPN_BG) / sizeof(struct chan_freq_power), 147 ARRAY_SIZE(channel_freq_power_JPN_BG),
148 } 148 }
149 , 149 ,
150/*Add new region here */ 150/*Add new region here */
@@ -1422,7 +1422,7 @@ struct chan_freq_power *libertas_get_region_cfp_table(u8 region, u8 band, int *c
1422 1422
1423 lbs_deb_enter(LBS_DEB_MAIN); 1423 lbs_deb_enter(LBS_DEB_MAIN);
1424 1424
1425 end = sizeof(region_cfp_table)/sizeof(struct region_cfp_table); 1425 end = ARRAY_SIZE(region_cfp_table);
1426 1426
1427 for (i = 0; i < end ; i++) { 1427 for (i = 0; i < end ; i++) {
1428 lbs_deb_main("region_cfp_table[i].region=%d\n", 1428 lbs_deb_main("region_cfp_table[i].region=%d\n",