1
0
Fork 0
alistair23-linux/drivers/staging/typec/fusb302
Frans Klaver b9e8caa7a6 staging: fusb302: don't bitshift __le16 type
The header field in struct pd_message is declared as an __le16 type. The
data in the message is supposed to be little endian. This means we don't
have to go and shift the individual bytes into position when we're
filling the buffer, we can just copy the contents right away. As an
added benefit we don't get fishy results on big endian systems anymore.

Signed-off-by: Frans Klaver <fransklaver@gmail.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-06-23 18:47:59 +02:00
..
Kconfig
Makefile
TODO
fusb302.c staging: fusb302: don't bitshift __le16 type 2017-06-23 18:47:59 +02:00
fusb302_reg.h