Skip to content

Commit 212bdba

Browse files
committed
[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>
1 parent 139adba commit 212bdba

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎drivers/media/platform/davinci/vpfe_capture.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1914,7 +1914,7 @@ static int vpfe_probe(struct platform_device *pdev)
19141914
v4l2_dbg(1, debug, &vpfe_dev->v4l2_dev,
19151915
"trying to register vpfe device.\n");
19161916
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);
19181918
vpfe_dev->fmt.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
19191919
ret = video_register_device(vpfe_dev->video_dev,
19201920
VFL_TYPE_GRABBER, -1);

‎drivers/media/platform/davinci/vpif_display.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1204,8 +1204,8 @@ static int vpif_probe_complete(void)
12041204
INIT_LIST_HEAD(&common->dma_queue);
12051205

12061206
/* 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);
12091209

12101210
/* Initialize the video_device structure */
12111211
vdev = ch->video_dev;

0 commit comments

Comments
 (0)