Skip to content

Commit 601423b

Browse files
qzedsre
authored andcommitted
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 <[email protected]> Fixes: e61ffb3 ("power: supply: Add AC driver for Surface Aggregator Module") Signed-off-by: Maximilian Luz <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
1 parent e633f33 commit 601423b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/power/supply/surface_charger.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ struct spwr_ac_device {
6666

6767
static int spwr_ac_update_unlocked(struct spwr_ac_device *ac)
6868
{
69-
u32 old = ac->state;
69+
__le32 old = ac->state;
7070
int status;
7171

7272
lockdep_assert_held(&ac->lock);

0 commit comments

Comments
 (0)