]> git.baikalelectronics.ru Git - kernel.git/commit
platform/surface: tabletsw: Fix __le32 integer access
authorMaximilian Luz <luzmaximilian@gmail.com>
Sun, 17 Jul 2022 12:07:35 +0000 (14:07 +0200)
committerHans de Goede <hdegoede@redhat.com>
Sun, 17 Jul 2022 14:20:35 +0000 (16:20 +0200)
commit53698d6d44cf2716f880b7fe5e82c5c4590ab181
tree431ca0124f2e71dcfaa21b12bee6c4ca4f27ad6c
parent59a348874d05d6939d92067a54480b76364a7b6c
platform/surface: tabletsw: Fix __le32 integer access

The sources.count field is a __le32 inside a packed struct. So use the
proper functions to access it.

Reported-by: kernel test robot <lkp@intel.com>
Fixes: b91f63210843 ("platform/surface: Add KIP/POS tablet-mode switch driver")
Signed-off-by: Maximilian Luz <luzmaximilian@gmail.com>
Link: https://lore.kernel.org/r/20220717120735.2052160-1-luzmaximilian@gmail.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/surface/surface_aggregator_tabletsw.c