From: David Herrmann Date: Thu, 9 Feb 2012 20:58:30 +0000 (+0100) Subject: Bluetooth: Introduce to_hci_dev() X-Git-Tag: v3.4-rc1~177^2~112^2~156 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa2b86d761a95068354511de755695ef6b53afc7;p=pandora-kernel.git 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 Acked-by: Marcel Holtmann Signed-off-by: Johan Hedberg --- Reading git-diff-tree failed