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>
This commit is contained in:
parent
76ec9de843
commit
c732a2af12
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue