Re: [PATCH] regulator/mfd: fix pointer-to-int cast

2018-10-02 Thread Matti Vaittinen
Hello Arnd, On Tue, Oct 02, 2018 at 11:07:32PM +0200, Arnd Bergmann wrote: > gcc points out that a pointer is longer than an int on 64-bit > architectures, and that casting between the two may be dangerous: > > drivers/mfd/rohm-bd718x7.c: In function 'bd718xx_i2c_probe': > drivers/mfd/rohm-bd718x

[PATCH] regulator/mfd: fix pointer-to-int cast

2018-10-02 Thread Arnd Bergmann
gcc points out that a pointer is longer than an int on 64-bit architectures, and that casting between the two may be dangerous: drivers/mfd/rohm-bd718x7.c: In function 'bd718xx_i2c_probe': drivers/mfd/rohm-bd718x7.c:101:23: error: cast from pointer to integer of different size [-Werror=pointer-to