mirror of
https://github.com/torvalds/linux.git
synced 2026-11-28 17:32:32 +00:00
We want to convert from 16 bit (unsigned) little endian values contained
in a packed struct to CPU native endian values here, not the other way
around. So replace cpu_to_le16() with get_unaligned_le16(), using the
latter instead of le16_to_cpu() to acknowledge that we are reading from
a packed struct.
Reported-by: kernel test robot <[email protected]>
Fixes: b05ff1002a ("HID: Add support for Surface Aggregator Module HID transport")
Signed-off-by: Maximilian Luz <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>