From: Johan Hedberg Date: Tue, 28 Feb 2012 15:18:30 +0000 (+0200) Subject: Bluetooth: mgmt: Move command handlers into a table X-Git-Tag: v3.4-rc1~177^2~112^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f4e68cf6e70fc219f219799c799a8a3e3c13100;p=pandora-kernel.git Bluetooth: mgmt: Move command handlers into a table By moving the command handlers into a table (the index being equal to the opcode) the lookup is made a bit more efficient. Having a struct to describe each handler also paves the way to add more meta-data for each handler, e.g. the minimum message size for the command and allow handling of common tasks like this in a centralized place. Signed-off-by: Johan Hedberg Acked-by: Marcel Holtmann --- Reading git-diff-tree failed