All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Bluetooth: btmrvl: Fix btmrvl_send_module_cfg_cmd()
@ 2014-04-15 20:00 Petri Gynther
  2014-04-16  3:45 ` Bing Zhao
  2014-04-22  7:55 ` Johan Hedberg
  0 siblings, 2 replies; 3+ messages in thread
From: Petri Gynther @ 2014-04-15 20:00 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: bzhao

Change subcmd parameter from int to u8 to match its use:
btmrvl_send_sync_cmd(priv, BT_CMD_MODULE_CFG_REQ, &subcmd, 1);

Signed-off-by: Petri Gynther <pgynther@google.com>
---
 drivers/bluetooth/btmrvl_drv.h  | 2 +-
 drivers/bluetooth/btmrvl_main.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/bluetooth/btmrvl_drv.h b/drivers/bluetooth/btmrvl_drv.h
index 199ff49..dc79f88 100644
--- a/drivers/bluetooth/btmrvl_drv.h
+++ b/drivers/bluetooth/btmrvl_drv.h
@@ -142,7 +142,7 @@ void btmrvl_interrupt(struct btmrvl_private *priv);
 bool btmrvl_check_evtpkt(struct btmrvl_private *priv, struct sk_buff *skb);
 int btmrvl_process_event(struct btmrvl_private *priv, struct sk_buff *skb);
 
-int btmrvl_send_module_cfg_cmd(struct btmrvl_private *priv, int subcmd);
+int btmrvl_send_module_cfg_cmd(struct btmrvl_private *priv, u8 subcmd);
 int btmrvl_send_hscfg_cmd(struct btmrvl_private *priv);
 int btmrvl_enable_ps(struct btmrvl_private *priv);
 int btmrvl_prepare_command(struct btmrvl_private *priv);
diff --git a/drivers/bluetooth/btmrvl_main.c b/drivers/bluetooth/btmrvl_main.c
index 5c0b944..e9dbddb 100644
--- a/drivers/bluetooth/btmrvl_main.c
+++ b/drivers/bluetooth/btmrvl_main.c
@@ -202,7 +202,7 @@ static int btmrvl_send_sync_cmd(struct btmrvl_private *priv, u16 opcode,
 	return 0;
 }
 
-int btmrvl_send_module_cfg_cmd(struct btmrvl_private *priv, int subcmd)
+int btmrvl_send_module_cfg_cmd(struct btmrvl_private *priv, u8 subcmd)
 {
 	int ret;
 
-- 
1.9.1.423.g4596e3a


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* RE: [PATCH] Bluetooth: btmrvl: Fix btmrvl_send_module_cfg_cmd()
  2014-04-15 20:00 [PATCH] Bluetooth: btmrvl: Fix btmrvl_send_module_cfg_cmd() Petri Gynther
@ 2014-04-16  3:45 ` Bing Zhao
  2014-04-22  7:55 ` Johan Hedberg
  1 sibling, 0 replies; 3+ messages in thread
From: Bing Zhao @ 2014-04-16  3:45 UTC (permalink / raw)
  To: Petri Gynther, linux-bluetooth

Hi,

> Change subcmd parameter from int to u8 to match its use:
> btmrvl_send_sync_cmd(priv, BT_CMD_MODULE_CFG_REQ, &subcmd, 1);
> 
> Signed-off-by: Petri Gynther <pgynther@google.com>

This patch looks good to me, feel free to add:

Reviewed-by: Bing Zhao <bzhao@marvell.com>

Thanks,
Bing

> ---
>  drivers/bluetooth/btmrvl_drv.h  | 2 +-
>  drivers/bluetooth/btmrvl_main.c | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/bluetooth/btmrvl_drv.h b/drivers/bluetooth/btmrvl_drv.h
> index 199ff49..dc79f88 100644
> --- a/drivers/bluetooth/btmrvl_drv.h
> +++ b/drivers/bluetooth/btmrvl_drv.h
> @@ -142,7 +142,7 @@ void btmrvl_interrupt(struct btmrvl_private *priv);
>  bool btmrvl_check_evtpkt(struct btmrvl_private *priv, struct sk_buff *skb);
>  int btmrvl_process_event(struct btmrvl_private *priv, struct sk_buff *skb);
> 
> -int btmrvl_send_module_cfg_cmd(struct btmrvl_private *priv, int subcmd);
> +int btmrvl_send_module_cfg_cmd(struct btmrvl_private *priv, u8 subcmd);
>  int btmrvl_send_hscfg_cmd(struct btmrvl_private *priv);
>  int btmrvl_enable_ps(struct btmrvl_private *priv);
>  int btmrvl_prepare_command(struct btmrvl_private *priv);
> diff --git a/drivers/bluetooth/btmrvl_main.c b/drivers/bluetooth/btmrvl_main.c
> index 5c0b944..e9dbddb 100644
> --- a/drivers/bluetooth/btmrvl_main.c
> +++ b/drivers/bluetooth/btmrvl_main.c
> @@ -202,7 +202,7 @@ static int btmrvl_send_sync_cmd(struct btmrvl_private *priv, u16 opcode,
>  	return 0;
>  }
> 
> -int btmrvl_send_module_cfg_cmd(struct btmrvl_private *priv, int subcmd)
> +int btmrvl_send_module_cfg_cmd(struct btmrvl_private *priv, u8 subcmd)
>  {
>  	int ret;
> 
> --
> 1.9.1.423.g4596e3a


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Bluetooth: btmrvl: Fix btmrvl_send_module_cfg_cmd()
  2014-04-15 20:00 [PATCH] Bluetooth: btmrvl: Fix btmrvl_send_module_cfg_cmd() Petri Gynther
  2014-04-16  3:45 ` Bing Zhao
@ 2014-04-22  7:55 ` Johan Hedberg
  1 sibling, 0 replies; 3+ messages in thread
From: Johan Hedberg @ 2014-04-22  7:55 UTC (permalink / raw)
  To: Petri Gynther; +Cc: linux-bluetooth, bzhao

Hi Petri,

On Tue, Apr 15, 2014, Petri Gynther wrote:
> Change subcmd parameter from int to u8 to match its use:
> btmrvl_send_sync_cmd(priv, BT_CMD_MODULE_CFG_REQ, &subcmd, 1);
> 
> Signed-off-by: Petri Gynther <pgynther@google.com>
> ---
>  drivers/bluetooth/btmrvl_drv.h  | 2 +-
>  drivers/bluetooth/btmrvl_main.c | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)

Applied to bluetooth-next. Thanks.

Johan

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-04-22  7:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-15 20:00 [PATCH] Bluetooth: btmrvl: Fix btmrvl_send_module_cfg_cmd() Petri Gynther
2014-04-16  3:45 ` Bing Zhao
2014-04-22  7:55 ` Johan Hedberg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.