diff options
author | Andrei Emeltchenko <andrei.emeltchenko@intel.com> | 2012-03-19 08:42:31 +0100 |
---|---|---|
committer | Gustavo Padovan <gustavo@padovan.org> | 2012-03-28 20:13:18 +0200 |
commit | c732a2af12e20f2784c8b0c9d2e289579313a413 (patch) | |
tree | ae70a81143cffa51241da8f6087b89a403b65612 /include/net/bluetooth | |
parent | Bluetooth: mgmt: Add missing endian conversion (diff) | |
download | linux-c732a2af12e20f2784c8b0c9d2e289579313a413.tar.xz linux-c732a2af12e20f2784c8b0c9d2e289579313a413.zip |
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>
Diffstat (limited to 'include/net/bluetooth')
-rw-r--r-- | include/net/bluetooth/mgmt.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/bluetooth/mgmt.h b/include/net/bluetooth/mgmt.h index ffc1377e092e..ebfd91fc20f8 100644 --- 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 |