diff options
| author | 2017-01-10 18:48:12 +0100 | |
|---|---|---|
| committer | 2017-01-12 01:03:53 +0100 | |
| commit | 15df6d98ec3b40775918fc6ef73d7f1c2d0cf870 (patch) | |
| tree | 7833c3a9b177fb34ca3dc436262ee5cd48da853d /include/linux/mfd | |
| parent | power: supply: bq27xxx: move overtemp tests to a switch statement. (diff) | |
| download | linux-dev-15df6d98ec3b40775918fc6ef73d7f1c2d0cf870.tar.xz linux-dev-15df6d98ec3b40775918fc6ef73d7f1c2d0cf870.zip | |
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: 0dcc70ca8644 ("power: supply: axp20x_usb_power: use of_device_id
data field instead of device_is_compatible")
Signed-off-by: Michal Suchanek <msuchanek@suse.de>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'include/linux/mfd')
| -rw-r--r-- | include/linux/mfd/axp20x.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/mfd/axp20x.h b/include/linux/mfd/axp20x.h index 812806d6319b..f848ee86a339 100644 --- a/include/linux/mfd/axp20x.h +++ b/include/linux/mfd/axp20x.h @@ -13,7 +13,7 @@ #include <linux/regmap.h> -enum { +enum axp20x_variants { AXP152_ID = 0, AXP202_ID, AXP209_ID, |
