Hi David, > This avoids using the dev_set/get_drvdata() functions to retrieve a > pointer to our own structure. We can use simple pointer arithmetic here. > The drvdata field is actually not needed by any other code-path but this > makes the code more consistent with hci_dev. > > Signed-off-by: David Herrmann <dh.herrmann@xxxxxxxxxxxxxx> > --- > include/net/bluetooth/hci_core.h | 1 + > net/bluetooth/hci_sysfs.c | 10 ++++------ > 2 files changed, 5 insertions(+), 6 deletions(-) I read through the comment and I am fine with to_hci_conn. Acked-by: Marcel Holtmann <marcel@xxxxxxxxxxxx> Regards Marcel -- 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