From: Johan Hedberg Date: Sat, 26 Jan 2013 22:31:29 +0000 (+0200) Subject: Bluetooth: Keep track of UUID type upon addition X-Git-Tag: v3.9-rc1~139^2~132^2^2~21^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=83be8eca2e67faaec45280224b798828bbfa69aa;p=pandora-kernel.git Bluetooth: Keep track of UUID type upon addition The primary purpose of the UUIDs is to enable generation of EIR and AD data. In these data formats the UUIDs are split into separate fields based on whether they're 16, 32 or 128 bit UUIDs. To make the generation of these data fields simpler this patch adds a type member to the bt_uuid struct and assigns a value to it as soon as the UUID is added to the kernel. This way the type doesn't need to be calculated each time the UUID list is later iterated. Signed-off-by: Johan Hedberg Acked-by: Marcel Holtmann Signed-off-by: Gustavo Padovan --- Reading git-diff-tree failed