Commit 8c2bb52f authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

media: vpbe_display: get rid of warnings

Solve those warnings:

    drivers/media/platform/davinci/vpbe_display.c:288 vpbe_start_streaming() warn: inconsistent indenting
    drivers/media/platform/davinci/vpbe_display.c:1356 register_device() warn: argument 3 to %x specifier is cast from pointer
    drivers/media/platform/davinci/vpbe_display.c:1356 register_device() warn: argument 4 to %x specifier is cast from pointer
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 693035dc
...@@ -285,7 +285,7 @@ static int vpbe_start_streaming(struct vb2_queue *vq, unsigned int count) ...@@ -285,7 +285,7 @@ static int vpbe_start_streaming(struct vb2_queue *vq, unsigned int count)
struct osd_state *osd_device = layer->disp_dev->osd_device; struct osd_state *osd_device = layer->disp_dev->osd_device;
int ret; int ret;
osd_device->ops.disable_layer(osd_device, layer->layer_info.id); osd_device->ops.disable_layer(osd_device, layer->layer_info.id);
/* Get the next frame from the buffer queue */ /* Get the next frame from the buffer queue */
layer->next_frm = layer->cur_frm = list_entry(layer->dma_queue.next, layer->next_frm = layer->cur_frm = list_entry(layer->dma_queue.next,
...@@ -1354,9 +1354,9 @@ static int register_device(struct vpbe_layer *vpbe_display_layer, ...@@ -1354,9 +1354,9 @@ static int register_device(struct vpbe_layer *vpbe_display_layer,
v4l2_info(&disp_dev->vpbe_dev->v4l2_dev, v4l2_info(&disp_dev->vpbe_dev->v4l2_dev,
"Trying to register VPBE display device.\n"); "Trying to register VPBE display device.\n");
v4l2_info(&disp_dev->vpbe_dev->v4l2_dev, v4l2_info(&disp_dev->vpbe_dev->v4l2_dev,
"layer=%x,layer->video_dev=%x\n", "layer=%p,layer->video_dev=%p\n",
(int)vpbe_display_layer, vpbe_display_layer,
(int)&vpbe_display_layer->video_dev); &vpbe_display_layer->video_dev);
vpbe_display_layer->video_dev.queue = &vpbe_display_layer->buffer_queue; vpbe_display_layer->video_dev.queue = &vpbe_display_layer->buffer_queue;
err = video_register_device(&vpbe_display_layer->video_dev, err = video_register_device(&vpbe_display_layer->video_dev,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment