iio: adc: rcar-gyroadc: Cast pointer to uintptr_t to fix warning on 64-bit
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 4 Oct 2017 12:08:24 +0000 (14:08 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 9 Oct 2017 19:50:43 +0000 (20:50 +0100)
commit2a35734564bd2dc4f73c9e230ff55892290a130f
tree4f62be67d37cddbf7624287f9e95746b7f993aeb
parent68c91e7a4009af758ef144a077d80db1499a7350
iio: adc: rcar-gyroadc: Cast pointer to uintptr_t to fix warning on 64-bit

On 64-bit:

    drivers/iio/adc/rcar-gyroadc.c: In function 'rcar_gyroadc_parse_subdevs':
    drivers/iio/adc/rcar-gyroadc.c:352:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
       childmode = (unsigned int)of_id->data;
   ^

Cast the pointer to uintptr_t instead of unsigned int to fix this.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/rcar-gyroadc.c