]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Unify helpers for bdaddr_list manipulations
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 9 Jul 2014 09:59:13 +0000 (12:59 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 9 Jul 2014 10:25:26 +0000 (12:25 +0200)
commite8c4e0098149b7c1c5fab65865861d91f89ffbf5
tree06bd7a3211429b7c958128ddf4a67d145fb9a74f
parent9de11794306c2d2f35eea0c2d50c48a822003a98
Bluetooth: Unify helpers for bdaddr_list manipulations

We already have several lists with struct bdaddr_list entries, and there
will be more in the future. Since the operations for adding, removing,
looking up and clearing entries in these lists are exactly the same it
doesn't make sense to define new functions for every single list. This
patch unifies the functions by passing the list_head to them instead of
a hci_dev pointer.

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