Browse Source

Bluetooth: mgmt: Fix timeout type

Silence sparse warnings:
net/bluetooth/mgmt.c:865:19: warning: cast to restricted __le16

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo Padovan <gustavo@padovan.org>
Andrei Emeltchenko 13 years ago
parent
commit
c732a2af12
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/net/bluetooth/mgmt.h

+ 1 - 1
include/net/bluetooth/mgmt.h

@@ -117,7 +117,7 @@ struct mgmt_mode {
 #define MGMT_OP_SET_DISCOVERABLE	0x0006
 #define MGMT_OP_SET_DISCOVERABLE	0x0006
 struct mgmt_cp_set_discoverable {
 struct mgmt_cp_set_discoverable {
 	__u8	val;
 	__u8	val;
-	__u16	timeout;
+	__le16	timeout;
 } __packed;
 } __packed;
 #define MGMT_SET_DISCOVERABLE_SIZE	3
 #define MGMT_SET_DISCOVERABLE_SIZE	3