diff options
author | Lee Jones <lee.jones@linaro.org> | 2016-10-26 18:07:35 +0200 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2016-11-29 09:21:26 +0100 |
commit | e8ae79d6746649cf1d007831d47c042003a46951 (patch) | |
tree | 2dc9d6abcefe4be6cce038547e4913482c9e137e /drivers/mfd/sun4i-gpadc.c | |
parent | mfd: axp20x-i2c: Add i2c-ids to fix module auto-loading (diff) | |
download | linux-e8ae79d6746649cf1d007831d47c042003a46951.tar.xz linux-e8ae79d6746649cf1d007831d47c042003a46951.zip |
mfd: sun4i-gpadc: Fix 'cast from pointer to integer of different size' warning
When building for X86 using COMPILE_TEST we get this warning:
../drivers/mfd/sun4i-gpadc.c: In function ‘sun4i_gpadc_probe’:
../drivers/mfd/sun4i-gpadc.c:110:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Since an integer and a pointer are difference sizes on 64bit architectures.
Convert to case to a long instead.
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/sun4i-gpadc.c')
-rw-r--r-- | drivers/mfd/sun4i-gpadc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/sun4i-gpadc.c b/drivers/mfd/sun4i-gpadc.c index 8a7ee5b6beb1..9cfc88134d03 100644 --- a/drivers/mfd/sun4i-gpadc.c +++ b/drivers/mfd/sun4i-gpadc.c @@ -107,7 +107,7 @@ static int sun4i_gpadc_probe(struct platform_device *pdev) if (!of_id) return -EINVAL; - switch ((int)of_id->data) { + switch ((long)of_id->data) { case ARCH_SUN4I_A10: cells = sun4i_gpadc_cells; size = ARRAY_SIZE(sun4i_gpadc_cells); |