mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-23 11:04:44 +08:00
b0d713c60c
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 <lkp@intel.com>
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
surface_hid_core.c | ||
surface_hid_core.h | ||
surface_hid.c | ||
surface_kbd.c |