Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 70a3b98a authored by Georg Veichtlbauer's avatar Georg Veichtlbauer
Browse files

power: smb1390-psy: Fix casting to int

Change-Id: I563df44c86bd646be6187c889d6e065da295791a
parent 099614bb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2097,7 +2097,7 @@ static int smb1390_probe(struct platform_device *pdev)
	}

	platform_set_drvdata(pdev, chip);
	chip->cp_role = (int)of_device_get_match_data(chip->dev);
	chip->cp_role = (uintptr_t)of_device_get_match_data(chip->dev);
	switch (chip->cp_role) {
	case CP_MASTER:
		rc = smb1390_master_probe(chip);