Skip to content
Commit e8ae79d6 authored by Lee Jones's avatar Lee Jones
Browse files

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: default avatarLee Jones <lee.jones@linaro.org>
parent 41751b03
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment