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)
commit44d271377479c4d4fe7f2d07d188656684773fbd
tree0fad2880c4becec52d10825c5b4d951b38233d5f
parent5fcc86bd2695d4ccad2d87cb424f4c01a4e544f3
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