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
..
2011-03-31 11:26:23 -03:00
2011-12-12 19:04:11 -05:00
2012-01-24 14:32:29 -05:00
2011-12-28 15:06:58 -05:00
2011-07-26 16:49:47 -07:00
2011-05-05 11:10:14 -07:00
2010-06-03 03:21:52 -07:00
2010-10-27 11:37:32 -07:00
2012-01-17 10:31:12 -05:00
2011-03-31 11:26:23 -03:00
2011-12-03 09:35:05 -08:00
2011-07-26 16:49:47 -07:00
2011-12-11 18:25:16 -05:00
2010-10-25 13:09:45 -07:00
2011-12-11 18:25:16 -05:00
2010-10-27 11:37:32 -07:00
2011-03-31 11:26:23 -03:00
2011-09-16 19:20:20 -04:00
2011-07-26 16:49:47 -07:00
2010-06-03 03:21:52 -07:00
2011-05-17 14:16:58 -04:00
2011-12-11 18:25:16 -05:00
2011-12-11 18:25:16 -05:00
2011-03-31 11:26:23 -03:00
2010-11-28 11:12:20 -08:00
2011-11-22 16:43:32 -05:00