kernel-fxtec-pro1x/include/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
..
bluetooth.h Bluetooth: silence lockdep warning 2012-02-13 17:01:29 +02:00
hci.h Bluetooth: Clean up structures left unused 2012-02-13 17:01:33 +02:00
hci_core.h Bluetooth: Introduce to_hci_dev() 2012-02-13 17:01:37 +02:00
l2cap.h Bluetooth: Remove usage of __cancel_delayed_work() 2012-02-13 17:01:30 +02:00
mgmt.h Bluetooth: Add Device Unpaired mgmt event 2012-02-13 17:01:37 +02:00
rfcomm.h Bluetooth: rfcomm: Fix sleep in invalid context in rfcomm_security_cfm 2011-11-07 17:24:49 -02:00
sco.h Bluetooth: clean up legal text 2010-12-01 21:04:43 -02:00
smp.h Bluetooth: Rename smp_key_size to enc_key_size 2012-02-13 17:01:30 +02:00