1
0
Fork 0
alistair23-linux/drivers/staging/typec
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
..
fusb302 staging: fusb302: don't bitshift __le16 type 2017-06-23 18:47:59 +02:00
Kconfig staging: typec: Fairchild FUSB302 Type-c chip driver 2017-04-28 11:29:00 +02:00
Makefile staging: typec: Fairchild FUSB302 Type-c chip driver 2017-04-28 11:29:00 +02:00
TODO staging: typec: Type-C Port Controller Interface driver (tcpci) 2017-04-28 11:29:00 +02:00
pd.h staging: typec: tcpm: Drop duplicate PD messages 2017-05-15 11:23:55 +02:00
pd_bdo.h
pd_vdo.h staging: typec: tcpm: Respond to Discover Identity commands 2017-05-15 11:23:56 +02:00
tcpci.c staging: typec: tcpci: declare private structure as static 2017-05-15 11:23:55 +02:00
tcpci.h staging: typec: Type-C Port Controller Interface driver (tcpci) 2017-04-28 11:29:00 +02:00
tcpm.c staging: typec: tcpm: Fix Port Power Role field in PS_RDY messages 2017-05-15 11:23:56 +02:00
tcpm.h staging: typec: tcpm: Respond to Discover Identity commands 2017-05-15 11:23:56 +02:00