summaryrefslogtreecommitdiff
path: root/crypto/proc.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2012-02-28 17:18:30 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2012-03-01 23:55:58 +0200
commit0f4e68cf6e70fc219f219799c799a8a3e3c13100 (patch)
tree208b69caf263957571c5601c625157f46fea8f81 /crypto/proc.c
parent6a919082e9b82a0de20f1248a33f3b3f005cebaf (diff)
downloadlinux-3.10-0f4e68cf6e70fc219f219799c799a8a3e3c13100.tar.gz
linux-3.10-0f4e68cf6e70fc219f219799c799a8a3e3c13100.tar.bz2
linux-3.10-0f4e68cf6e70fc219f219799c799a8a3e3c13100.zip
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 <johan.hedberg@intel.com> Acked-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'crypto/proc.c')
0 files changed, 0 insertions, 0 deletions