]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
Bluetooth: Move handling of HCI_RUNNING flag into core
authorMarcel Holtmann <marcel@holtmann.org>
Sun, 4 Oct 2015 21:34:02 +0000 (23:34 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 5 Oct 2015 07:30:25 +0000 (10:30 +0300)
commite9ca8bf157f2b45f8f670517c96da313083ee9b2
tree7aaa31766e0af85588a84f0d06d65d5b77375f7b
parent73d0d3c8671190ea982a8e79a7c79fbfe88f8f47
Bluetooth: Move handling of HCI_RUNNING flag into core

Setting and clearing of HCI_RUNNING flag in each and every driver is
just duplicating the same code all over the place. So instead of having
the driver do it in their hdev->open and hdev->close callbacks, set it
globally in the core transport handling.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
13 files changed:
drivers/bluetooth/bfusb.c
drivers/bluetooth/bluecard_cs.c
drivers/bluetooth/bpa10x.c
drivers/bluetooth/bt3c_cs.c
drivers/bluetooth/btmrvl_main.c
drivers/bluetooth/btsdio.c
drivers/bluetooth/btuart_cs.c
drivers/bluetooth/btusb.c
drivers/bluetooth/btwilink.c
drivers/bluetooth/dtl1_cs.c
drivers/bluetooth/hci_ldisc.c
drivers/bluetooth/hci_vhci.c
net/bluetooth/hci_core.c