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

Commit 15df6d98 authored by Michal Suchanek's avatar Michal Suchanek Committed by Sebastian Reichel
Browse files

power: supply: axp20x_usb_power: fix warning on 64bit



Casting of_device_get_match_data return value to int causes warning on 64bit
architectures.

../drivers/power/supply/axp20x_usb_power.c: In function
'axp20x_usb_power_probe':
../drivers/power/supply/axp20x_usb_power.c:297:21: warning: cast from
pointer to integer of different size [-Wpointer-to-int-cast]

Fixes: 0dcc70ca ("power: supply: axp20x_usb_power: use of_device_id
    data field instead of device_is_compatible")
Signed-off-by: default avatarMichal Suchanek <msuchanek@suse.de>
Signed-off-by: default avatarSebastian Reichel <sre@kernel.org>
parent e839a448
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment