Bluetooth: btmrvl: Fix btmrvl_send_module_cfg_cmd()
authorPetri Gynther <pgynther@google.com>
Tue, 15 Apr 2014 20:00:00 +0000 (13:00 -0700)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Thu, 24 Apr 2014 14:55:25 +0000 (11:55 -0300)
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>
Reviewed-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
drivers/bluetooth/btmrvl_drv.h
drivers/bluetooth/btmrvl_main.c

index 199ff492da263b6487ea7aa9b7b2f32a29268956..dc79f88f8717f478c8d8ab6d0a7d45849f772ac1 100644 (file)
@@ -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);
index 5c0b9444b5e1ee790422355b4dad750f521d6ae6..e9dbddb0b8f1efb1f15ede65f50d80390ca370c3 100644 (file)
@@ -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;