RE: [PATCH] bluetooth: opcode field of sent commands is little endian.

From
David Laight <hidden>
Date
2012-06-25 09:21:44
Also in
linuxppc-dev
Reply to
Michel Dänzer, 2012-06-25
 
quoted
quoted
Fine with me, though FWIW that not only doesn't use
__constant_cpu_to_le16() but actually swaps the non-constant value.
Don't see what point you are trying to make here. Swapping the value
from the actual command structure is always fine with me.
The point is that the result of swapping a constant value is just
another constant value, whereas the fix in mainline swaps a value from
memory. Not a big deal.
Surely, but surely, the definition of cpu_to_le16() uses
gcc 'magic' to determine that the argument is a constant
and then automatically selects the 'constant' form.

	David

Thread (8 messages) 8 messages, 4 authors, last reply 2012-06-25
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help