diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2012-02-28 17:18:30 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-03-01 23:55:58 +0200 |
commit | 0f4e68cf6e70fc219f219799c799a8a3e3c13100 (patch) | |
tree | 208b69caf263957571c5601c625157f46fea8f81 /crypto/pcbc.c | |
parent | 6a919082e9b82a0de20f1248a33f3b3f005cebaf (diff) | |
download | linux-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/pcbc.c')
0 files changed, 0 insertions, 0 deletions