Bluetooth: Provide flags parameter direct to mgmt_device_found
authorMarcel Holtmann <marcel@holtmann.org>
Tue, 1 Jul 2014 12:11:20 +0000 (14:11 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 3 Jul 2014 15:42:53 +0000 (17:42 +0200)
commitaf58925ca6175695e502fa792f43a946f7474765
treef0e50a2398cbf7a2f04ccb4d2be9115d1ed310fa
parent42bd6a56ed1ab4b2cb50f4d4e674874da9b47f46
Bluetooth: Provide flags parameter direct to mgmt_device_found

Providing the flags parameter directly to mgmt_device_found function
makes the core simpler and more readable. With this it becomes a lot
easier to add new flags in the future.

This also changes hci_inquiry_cache_update to just return that flags
needed for mgmt_device_found since that is its only use for the two
return parameters anyway.

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