power: supply: surface-charger: Fix type of integer variable
authorMaximilian Luz <luzmaximilian@gmail.com>
Tue, 11 May 2021 09:24:21 +0000 (11:24 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Thu, 3 Jun 2021 18:53:54 +0000 (20:53 +0200)
commit601423bc0c06467d019cf2a446962a5bf1b5e330
tree5ad26db43c261705515df7c8e2d25a1f7859a667
parente633f33d2669cb54db2846f9cde08662d254dbd3
power: supply: surface-charger: Fix type of integer variable

The ac->state field is __le32, not u32. So change the variable we're
temporarily storing it in to __le32 as well.

Reported-by: kernel test robot <lkp@intel.com>
Fixes: e61ffb344591 ("power: supply: Add AC driver for Surface Aggregator Module")
Signed-off-by: Maximilian Luz <luzmaximilian@gmail.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/surface_charger.c