Re: [PATCH] i2c: ocores: Fix pointer to integer cast warning

Andreas Larsson
2013-02-19T13:05:01Z

On 2013-02-19 09:31, Peter Korsgaard wrote:
>>>>>> "Jayachandran" == Jayachandran C <jchandra-dY08KVG/lbpWk0Htik3J/w@public.gmane.org> writes:
>
> Jayachandran> After commit a000b8c1 [i2c: ocores: Add support for the
> Jayachandran> GRLIB port of the controller and use function pointers
> Jayachandran> for getreg and setreg function], compiling i2c-ocores.c
> Jayachandran> for 64-bit gives the following warning:
>
> Jayachandran> drivers/i2c/busses/i2c-ocores.c: In function 'ocores_i2c_of_probe':
> Jayachandran> drivers/i2c/busses/i2c-ocores.c:334:15: warning: cast from pointer to integer of different size
>
> Jayachandran> Fix it by casting the pointer to long.
>
> I've CC'ed Andreas who made the change.
>
> Acked-by: Peter Korsgaard <jacmet-OfajU3CKLf1/SzgSGea1oA@public.gmane.org>

Thanks!

Acked-by: Andreas Larsson <andreas-FkzTOoA/JUlBDgjK7y7TUQ@public.gmane.org>