Re: [PATCH -next] nvmem: fix a 'makes pointer from integer without a cast' build warning
From: Bartosz Golaszewski
Date: Fri Jan 10 2020 - 06:13:25 EST
pt., 10 sty 2020 o 11:16 Srinivas Kandagatla
<srinivas.kandagatla@xxxxxxxxxx> napisaÅ(a):
>
> Thanks for the patch.
>
> On 10/01/2020 08:24, Bartosz Golaszewski wrote:
> > From: Bartosz Golaszewski <bgolaszewski@xxxxxxxxxxxx>
> >
> > nvmem_register() returns a pointer, not a long int. Use ERR_CAST() to
> > cast the struct gpio_desc pointer to struct nvmem_device.
> >
> > Reported-by: kbuild test robot <lkp@xxxxxxxxx>
> > Fixes: 2a127da461a9 ("nvmem: add support for the write-protect pin")
> > Signed-off-by: Bartosz Golaszewski <bgolaszewski@xxxxxxxxxxxx>
> > ---
>
> Acked-by: Srinivas Kandagatla <srinivas.kandagatla@xxxxxxxxxx>
>
Thanks. This is rather uncontroversial, so applied right away.
Bart