power: smb139{0,8}: Cast 'cp_role' to smaller integer type
As seen on msm-5.15 and newer kernels Change-Id: I95a4b4286d29e7056ce0d6d5c0ae1f96e3a98154
This commit is contained in:
1 parent
076aca3e24
commit
535a82e3ef
2 files changed
+2
-2
No files matched your search
@@ -2101,7 +2101,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 = (int)(unsigned long)of_device_get_match_data(chip->dev);
|
||||
switch (chip->cp_role) {
|
||||
case CP_MASTER:
|
||||
rc = smb1390_master_probe(chip);
|
||||
|
||||
@@ -2732,7 +2732,7 @@ static int smb1398_probe(struct platform_device *pdev)
|
||||
chip->disabled = true;
|
||||
platform_set_drvdata(pdev, chip);
|
||||
|
||||
chip->div2_cp_role = (int)of_device_get_match_data(chip->dev);
|
||||
chip->div2_cp_role = (int)(unsigned long)of_device_get_match_data(chip->dev);
|
||||
switch (chip->div2_cp_role) {
|
||||
case DIV2_CP_MASTER:
|
||||
case SMB1394_DIV2_CP_PRY:
|
||||
|
||||
Reference in new issue
Block a user