projects
/
platform
/
kernel
/
linux-arm64.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76ec9de
)
Bluetooth: mgmt: Fix timeout type
author
Andrei Emeltchenko
<andrei.emeltchenko@intel.com>
Mon, 19 Mar 2012 07:42:31 +0000
(09:42 +0200)
committer
Gustavo Padovan
<gustavo@padovan.org>
Wed, 28 Mar 2012 18:13:18 +0000
(15:13 -0300)
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>
include/net/bluetooth/mgmt.h
patch
|
blob
|
history
diff --git
a/include/net/bluetooth/mgmt.h
b/include/net/bluetooth/mgmt.h
index
ffc1377
..
ebfd91f
100644
(file)
--- a/
include/net/bluetooth/mgmt.h
+++ b/
include/net/bluetooth/mgmt.h
@@
-117,7
+117,7
@@
struct mgmt_mode {
#define MGMT_OP_SET_DISCOVERABLE 0x0006
struct mgmt_cp_set_discoverable {
__u8 val;
- __
u16
timeout;
+ __
le16
timeout;
} __packed;
#define MGMT_SET_DISCOVERABLE_SIZE 3