• Linus Walleij's avatar
    regulator: ab3100: cast fix · 23e21ddf
    Linus Walleij authored
    The AB3100 regulator driver emits a warning when compiled on 64bit
    systems like this:
    
    drivers/regulator/ab3100.c:
    In function ‘ab3100_regulator_of_probe’:
    srivers/regulator/ab3100.c:649:4:
    warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
    
    As the int is a different size than the 64bit pointer used to
    pass regulator data. Switch to using an unsigned long as ID
    passed for the regulator to get rid of the warning.
    Reported-by: default avatarLee Jones <lee.jones@linaro.org>
    Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
    Signed-off-by: default avatarMark Brown <broonie@linaro.org>
    23e21ddf
ab3100.c 18.3 KB