Hi David, On Thu, Feb 09, 2012, David Herrmann wrote: > 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@xxxxxxxxxxxxxx> > Acked-by: Marcel Holtmann <marcel@xxxxxxxxxxxx> > --- > Acked in: Message-ID: <1327960525.1955.178.camel@aeonflux> > > include/net/bluetooth/hci_core.h | 2 ++ > net/bluetooth/hci_sysfs.c | 33 ++++++++++++++++----------------- > 2 files changed, 18 insertions(+), 17 deletions(-) Sorry about missing these initially. Last week had plenty of distractions to offer thanks to the UPF. Anyway, all four patches have been applied to my bluetooth-next tree now. Johan -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html