]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Compress the size of struct hci_ctrl
authorJohan Hedberg <johan.hedberg@intel.com>
Thu, 5 Nov 2015 07:31:40 +0000 (09:31 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 19 Nov 2015 16:50:27 +0000 (17:50 +0100)
commitdd24e9e91d7f2e5c441ab7fb2ab166676f2d2dfa
tree0fad2880c4becec52d10825c5b4d951b38233d5f
parent61ae9072813ff3137fb5fa1963c0f33b3901c57b
Bluetooth: Compress the size of struct hci_ctrl

We can reduce the size of the hci_ctrl struct by converting
'bool req_start' to 'u8 req_flags' and making the two function
pointers a union (since only one is ever set at a time).

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
include/net/bluetooth/bluetooth.h
net/bluetooth/hci_core.c
net/bluetooth/hci_request.c
net/bluetooth/hci_sock.c