commit | 3dc07322b1ce3c8477690d54ebbf15a165f43066 | [log] [tgz] |
---|---|---|
author | David Herrmann <dh.herrmann@googlemail.com> | Thu Feb 09 21:58:33 2012 +0100 |
committer | Johan Hedberg <johan.hedberg@intel.com> | Mon Feb 13 17:01:37 2012 +0200 |
tree | c66786eff790fdb08747b3f92ee5014a5569d4e8 | |
parent | 155961e8001719af6d87cbcc961111e8ce477843 [diff] |
Bluetooth: Introduce to_hci_conn 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@googlemail.com> Acked-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>