From: Johan Hedberg Date: Tue, 28 Feb 2012 04:13:32 +0000 (+0200) Subject: Bluetooth: mgmt: Refactor hci_dev lookup for commands X-Git-Tag: v3.4-rc1~177^2~112^2~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bdb6d97154b7b7e98867e9b71bae0f47ec70b1d7;p=pandora-kernel.git Bluetooth: mgmt: Refactor hci_dev lookup for commands Almost all mgmt commands need to lookup a struct hci_dev based on the index received within the mgmt headers. It makese therefore sense to look this up in a single place and then just pass the hdev pointer to each command handler function. Signed-off-by: Johan Hedberg Acked-by: Marcel Holtmann --- Reading git-diff-tree failed