Bluetooth: Refactor L2CAP variables into l2cap_ctrl
authorJohan Hedberg <johan.hedberg@intel.com>
Mon, 30 Mar 2015 20:21:01 +0000 (23:21 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 30 Mar 2015 21:20:53 +0000 (23:20 +0200)
commita4368ff3ed3b57e4b5e36d83b75604f68bbcdaad
treefadfd6e1b967980891816b1773cf871afebe4065
parent20fa110a54d8070a7d68fb44a6c0ea2d8b09fddc
Bluetooth: Refactor L2CAP variables into l2cap_ctrl

We're getting very close to the maximum possible size of bt_skb_cb. To
prepare to shrink the struct with the help of a union this patch moves
all L2CAP related variables into the l2cap_ctrl struct. To later add
other 'ctrl' structs the L2CAP one is renamed simple 'l2cap' instead
of 'control'.

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