]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Bluetooth: Fix type in cpu_to_le conversion
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>
Mon, 12 Mar 2012 13:59:32 +0000 (15:59 +0200)
committerGustavo Padovan <gustavo@padovan.org>
Wed, 28 Mar 2012 14:39:08 +0000 (11:39 -0300)
commit787db900f4df2e7f24371c8af4a41e11c3ad173d
treeb1ce1c59c808f562dcd0f2ab256b90b9f98508f7
parent7826093486a6e0dfbcd2aa6b2dcdab543c4c4195
Bluetooth: Fix type in cpu_to_le conversion

Use struct hci_cp_write_def_link_policy to overcome sparse
warnigs below:

...
net/bluetooth/hci_event.c:633:21: warning: incorrect type in assignment
(different base types)
net/bluetooth/hci_event.c:633:21:    expected unsigned short [unsigned]
[assigned] [usertype] link_policy
net/bluetooth/hci_event.c:633:21:    got restricted __le16 [usertype] <noident>
...

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
net/bluetooth/hci_event.c