Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] vpif: don't cast pointers to int

Shut up several warnings about invalid casting when printing
the values of two pointers.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>

+3 -3
+1 -1
drivers/media/platform/davinci/vpfe_capture.c
··· 1914 1914 v4l2_dbg(1, debug, &vpfe_dev->v4l2_dev, 1915 1915 "trying to register vpfe device.\n"); 1916 1916 v4l2_dbg(1, debug, &vpfe_dev->v4l2_dev, 1917 - "video_dev=%x\n", (int)&vpfe_dev->video_dev); 1917 + "video_dev=%p\n", &vpfe_dev->video_dev); 1918 1918 vpfe_dev->fmt.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; 1919 1919 ret = video_register_device(vpfe_dev->video_dev, 1920 1920 VFL_TYPE_GRABBER, -1);
+2 -2
drivers/media/platform/davinci/vpif_display.c
··· 1204 1204 INIT_LIST_HEAD(&common->dma_queue); 1205 1205 1206 1206 /* register video device */ 1207 - vpif_dbg(1, debug, "channel=%x,channel->video_dev=%x\n", 1208 - (int)ch, (int)&ch->video_dev); 1207 + vpif_dbg(1, debug, "channel=%p,channel->video_dev=%p\n", 1208 + ch, &ch->video_dev); 1209 1209 1210 1210 /* Initialize the video_device structure */ 1211 1211 vdev = ch->video_dev;