]> 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)
commita22419f254861040d85d03cbdb2cf307bc8cd76f
tree0fad2880c4becec52d10825c5b4d951b38233d5f
parent42872703c0a8dc13dcd332511d88f3919ec9ef81
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