提交 1f602d68 编写于 作者: A Arend van Spriel 提交者: Greg Kroah-Hartman

staging: brcm80211: make function definitions and prototype consistent

Couple of functions that are only used within wlc_channel.c have been
prototyped with static keyword. For the function definition itself this
has been added when missing.

Cc: devel@linuxdriverproject.org
Cc: linux-wireless@vger.kernel.org
Reviewed-by: NRoland Vossen <rvossen@broadcom.com>
Reviewed-by: NHenry Ptasinski <henryp@broadcom.com>
Reviewed-by: NBrett Rudley <brudley@broadcom.com>
Signed-off-by: NArend van Spriel <arend@broadcom.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 e2418ff1
...@@ -107,7 +107,7 @@ static void wlc_channel_min_txpower_limits_with_local_constraint(wlc_cm_info_t * ...@@ -107,7 +107,7 @@ static void wlc_channel_min_txpower_limits_with_local_constraint(wlc_cm_info_t *
*txpwr, *txpwr,
u8 u8
local_constraint_qdbm); local_constraint_qdbm);
void wlc_locale_add_channels(chanvec_t *target, const chanvec_t *channels); static void wlc_locale_add_channels(chanvec_t *target, const chanvec_t *channels);
static const locale_mimo_info_t *wlc_get_mimo_2g(u8 locale_idx); static const locale_mimo_info_t *wlc_get_mimo_2g(u8 locale_idx);
static const locale_mimo_info_t *wlc_get_mimo_5g(u8 locale_idx); static const locale_mimo_info_t *wlc_get_mimo_5g(u8 locale_idx);
...@@ -397,7 +397,7 @@ static const chanvec_t *g_table_locale_base[] = { ...@@ -397,7 +397,7 @@ static const chanvec_t *g_table_locale_base[] = {
&locale_5g_HIGH4 &locale_5g_HIGH4
}; };
void wlc_locale_add_channels(chanvec_t *target, const chanvec_t *channels) static void wlc_locale_add_channels(chanvec_t *target, const chanvec_t *channels)
{ {
u8 i; u8 i;
for (i = 0; i < sizeof(chanvec_t); i++) { for (i = 0; i < sizeof(chanvec_t); i++) {
...@@ -608,7 +608,7 @@ static const locale_info_t *wlc_get_locale_5g(u8 locale_idx) ...@@ -608,7 +608,7 @@ static const locale_info_t *wlc_get_locale_5g(u8 locale_idx)
return g_locale_5g_table[locale_idx]; return g_locale_5g_table[locale_idx];
} }
const locale_mimo_info_t *wlc_get_mimo_2g(u8 locale_idx) static const locale_mimo_info_t *wlc_get_mimo_2g(u8 locale_idx)
{ {
if (locale_idx >= ARRAY_SIZE(g_mimo_2g_table)) { if (locale_idx >= ARRAY_SIZE(g_mimo_2g_table)) {
return NULL; return NULL;
...@@ -616,7 +616,7 @@ const locale_mimo_info_t *wlc_get_mimo_2g(u8 locale_idx) ...@@ -616,7 +616,7 @@ const locale_mimo_info_t *wlc_get_mimo_2g(u8 locale_idx)
return g_mimo_2g_table[locale_idx]; return g_mimo_2g_table[locale_idx];
} }
const locale_mimo_info_t *wlc_get_mimo_5g(u8 locale_idx) static const locale_mimo_info_t *wlc_get_mimo_5g(u8 locale_idx)
{ {
if (locale_idx >= ARRAY_SIZE(g_mimo_5g_table)) { if (locale_idx >= ARRAY_SIZE(g_mimo_5g_table)) {
return NULL; return NULL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册