[PATCH] power: supply: axp20x_usb_power: fix 64-bit build warning

2017-01-11 Thread Arnd Bergmann
Casting a pointer to 'int' is not always valid: drivers/power/supply/axp20x_usb_power.c: In function 'axp20x_usb_power_probe': drivers/power/supply/axp20x_usb_power.c:297:21: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] This makes the code use uintptr_t exp

Re: [PATCH] power: supply: axp20x_usb_power: fix 64-bit build warning

2017-01-11 Thread Sebastian Reichel
Hi Arnd, On Wed, Jan 11, 2017 at 03:51:55PM +0100, Arnd Bergmann wrote: > Casting a pointer to 'int' is not always valid: > > drivers/power/supply/axp20x_usb_power.c: In function 'axp20x_usb_power_probe': > drivers/power/supply/axp20x_usb_power.c:297:21: error: cast from pointer to > integer of

Re: [PATCH] power: supply: axp20x_usb_power: fix 64-bit build warning

2017-01-12 Thread Arnd Bergmann
On Thursday, January 12, 2017 3:58:24 AM CET Sebastian Reichel wrote: > Hi Arnd, > > On Wed, Jan 11, 2017 at 03:51:55PM +0100, Arnd Bergmann wrote: > > Casting a pointer to 'int' is not always valid: > > > > drivers/power/supply/axp20x_usb_power.c: In function > > 'axp20x_usb_power_probe': > > d

Re: [PATCH] power: supply: axp20x_usb_power: fix 64-bit build warning

2017-01-12 Thread Arnd Bergmann
On Thursday, January 12, 2017 4:53:55 PM CET Michal Suchánek wrote: > Hello, > > On Thu, 12 Jan 2017 09:32:26 +0100 > Arnd Bergmann wrote: > > > On Thursday, January 12, 2017 3:58:24 AM CET Sebastian Reichel wrote: > > > Hi Arnd, > > > > > > On Wed, Jan 11, 2017 at 03:51:55PM +0100, Arnd Bergma

Re: [PATCH] power: supply: axp20x_usb_power: fix 64-bit build warning

2017-01-12 Thread Michal Suchánek
Hello, On Thu, 12 Jan 2017 09:32:26 +0100 Arnd Bergmann wrote: > On Thursday, January 12, 2017 3:58:24 AM CET Sebastian Reichel wrote: > > Hi Arnd, > > > > On Wed, Jan 11, 2017 at 03:51:55PM +0100, Arnd Bergmann wrote: > > > Casting a pointer to 'int' is not always valid: > > > > > > drivers

Re: [PATCH] power: supply: axp20x_usb_power: fix 64-bit build warning

2017-01-12 Thread Sebastian Reichel
On Thu, Jan 12, 2017 at 09:32:26AM +0100, Arnd Bergmann wrote: > On Thursday, January 12, 2017 3:58:24 AM CET Sebastian Reichel wrote: > > On Wed, Jan 11, 2017 at 03:51:55PM +0100, Arnd Bergmann wrote: > > > Casting a pointer to 'int' is not always valid: > > > > > > drivers/power/supply/axp20x_u