Skip to content

Commit

Permalink
power: qcom: Tentatively silence compiler warning
Browse files Browse the repository at this point in the history
Clang warns:

../drivers/power/supply/qcom/smb1390-charger-psy.c:2086:18: error: cast to smaller integer type 'int' from 'const void *' [-Werror,-Wvoid-pointer-to-int-cast]
        chip->cp_role = (int)of_device_get_match_data(chip->dev);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Kazuki Hashimoto <[email protected]>
  • Loading branch information
Kazuki Hashimoto authored and Joker-V2 committed Jul 24, 2021
1 parent d4d1756 commit b9cb119
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/power/supply/qcom/smb1390-charger-psy.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = (long int)of_device_get_match_data(chip->dev);
switch (chip->cp_role) {
case CP_MASTER:
rc = smb1390_master_probe(chip);
Expand Down

0 comments on commit b9cb119

Please sign in to comment.