kernel-fxtec-pro1x/net/bluetooth
David Herrmann aa2b86d761 Bluetooth: Introduce to_hci_dev()
We currently use dev_set_drvdata to keep a pointer to ourself. This
doesn't make sense as we are the bus and not a driver. Therefore,
introduce to_hci_dev() so we can get a struct hci_dev pointer from a
struct device pointer.

dev_set/get_drvdata() is reserved for drivers that provide a device and
not for the bus using the device. The bus can use simple pointer
arithmetic to retrieve its private data.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2012-02-13 17:01:37 +02:00
..
bnep Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next into for-davem 2012-01-03 15:16:34 -05:00
cmtp Bluetooth: Always compile SCO and L2CAP in Bluetooth Core 2011-12-21 02:21:08 -02:00
hidp Bluetooth: Always compile SCO and L2CAP in Bluetooth Core 2011-12-21 02:21:08 -02:00
rfcomm Bluetooth: Fix RFCOMM session reference counting issue 2012-02-13 17:01:31 +02:00
af_bluetooth.c Bluetooth: silence lockdep warning 2012-02-13 17:01:29 +02:00
hci_conn.c Bluetooth: Use list _safe deleting from conn chan_list 2012-02-13 17:01:32 +02:00
hci_core.c Bluetooth: Add address type to mgmt blacklist messages 2012-02-13 17:01:36 +02:00
hci_event.c Bluetooth: Add address type to mgmt_ev_auth_failed 2012-02-13 17:01:37 +02:00
hci_sock.c Bluetooth: Add address type to mgmt blacklist messages 2012-02-13 17:01:36 +02:00
hci_sysfs.c Bluetooth: Introduce to_hci_dev() 2012-02-13 17:01:37 +02:00
Kconfig Bluetooth: Always compile SCO and L2CAP in Bluetooth Core 2011-12-21 02:21:08 -02:00
l2cap_core.c Bluetooth: Fix double acking I-Frames when sending pending I-Frames 2012-02-13 17:01:35 +02:00
l2cap_sock.c Bluetooth: Add alloc_skb chan operator 2012-02-13 17:01:29 +02:00
lib.c Bluetooth: Add bt_printk 2011-06-30 19:17:12 -03:00
Makefile Bluetooth: Always compile SCO and L2CAP in Bluetooth Core 2011-12-21 02:21:08 -02:00
mgmt.c Bluetooth: Add Device Unpaired mgmt event 2012-02-13 17:01:37 +02:00
sco.c Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/padovan/bluetooth-next 2012-01-10 15:44:17 -05:00
smp.c Bluetooth: Add address type to mgmt_ev_auth_failed 2012-02-13 17:01:37 +02:00