summaryrefslogtreecommitdiffstats
path: root/drivers/bluetooth/hci_ldisc.c
diff options
context:
space:
mode:
authorDavid Herrmann2012-02-09 21:58:30 +0100
committerJohan Hedberg2012-02-13 16:01:37 +0100
commitaa2b86d761a95068354511de755695ef6b53afc7 (patch)
tree704eeeb173b859311ebc23d6881fa40575f43851 /drivers/bluetooth/hci_ldisc.c
parentBluetooth: Add Device Unpaired mgmt event (diff)
downloadkernel-qcow2-linux-aa2b86d761a95068354511de755695ef6b53afc7.tar.gz
kernel-qcow2-linux-aa2b86d761a95068354511de755695ef6b53afc7.tar.xz
kernel-qcow2-linux-aa2b86d761a95068354511de755695ef6b53afc7.zip
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>
Diffstat (limited to 'drivers/bluetooth/hci_ldisc.c')
0 files changed, 0 insertions, 0 deletions