From: Johan Hedberg Date: Fri, 15 Aug 2014 18:06:57 +0000 (+0300) Subject: Bluetooth: Improve *_get() functions to return the object type X-Git-Tag: fixes-against-v3.18-rc2~144^2~144^2~144 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51bb8457ddfa74ede52bf8c02054dea831d59fff;p=pandora-kernel.git Bluetooth: Improve *_get() functions to return the object type It's natural to have *_get() functions that increment the reference count of an object to return the object type itself. This way it's simple to make a copy of the object pointer and increase the reference count in a single step. This patch updates two such get() functions, namely hci_conn_get() and l2cap_conn_get(), and updates the users to take advantage of the new API. Signed-off-by: Johan Hedberg Signed-off-by: Marcel Holtmann --- Reading git-diff-tree failed