2009-10-16 15:35:20

by Holger Schurig

[permalink] [raw]
Subject: [PATCH] libertas: make lbs_get_channel() static

Signed-off-by: Holger Schurig <[email protected]>

--- linux-wl.orig/drivers/net/wireless/libertas/cmd.c
+++ linux-wl/drivers/net/wireless/libertas/cmd.c
@@ -880,7 +880,7 @@
*
* @return The channel on success, error on failure
*/
-int lbs_get_channel(struct lbs_private *priv)
+static int lbs_get_channel(struct lbs_private *priv)
{
struct cmd_ds_802_11_rf_channel cmd;
int ret = 0;
--- linux-wl.orig/drivers/net/wireless/libertas/cmd.h
+++ linux-wl/drivers/net/wireless/libertas/cmd.h
@@ -82,8 +82,6 @@

int lbs_update_hw_spec(struct lbs_private *priv);

-int lbs_get_channel(struct lbs_private *priv);
-
int lbs_set_channel(struct lbs_private *priv, u8 channel);

int lbs_update_channel(struct lbs_private *priv);

--
http://www.holgerschurig.de


2009-10-16 16:29:08

by Dan Williams

[permalink] [raw]
Subject: Re: [PATCH] libertas: make lbs_get_channel() static

On Fri, 2009-10-16 at 17:33 +0200, Holger Schurig wrote:
> Signed-off-by: Holger Schurig <[email protected]>
>

Acked-by: Dan Williams <[email protected]>

> --- linux-wl.orig/drivers/net/wireless/libertas/cmd.c
> +++ linux-wl/drivers/net/wireless/libertas/cmd.c
> @@ -880,7 +880,7 @@
> *
> * @return The channel on success, error on failure
> */
> -int lbs_get_channel(struct lbs_private *priv)
> +static int lbs_get_channel(struct lbs_private *priv)
> {
> struct cmd_ds_802_11_rf_channel cmd;
> int ret = 0;
> --- linux-wl.orig/drivers/net/wireless/libertas/cmd.h
> +++ linux-wl/drivers/net/wireless/libertas/cmd.h
> @@ -82,8 +82,6 @@
>
> int lbs_update_hw_spec(struct lbs_private *priv);
>
> -int lbs_get_channel(struct lbs_private *priv);
> -
> int lbs_set_channel(struct lbs_private *priv, u8 channel);
>
> int lbs_update_channel(struct lbs_private *priv);
>