Hi Andrei, > > In case the struct is already __packed, there is no need to use unaligned > > access to the data. So just use __le16_to_cpu in these cases. > > One minor comment related to use of __xxx versions. What is the general > rule when to use __le16_to_cpu and when le16_to_cpu? In mgmt.c looks that > mostly in use version without underscore. honestly I do not know. We have been using __le16_to_cpu and cpu_to_le16 as long as I can remember. Regards Marcel -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html