Skip to content

Commit

Permalink
[media] marvell-cam: clean up a couple of unused cam structure fields
Browse files Browse the repository at this point in the history
Delete a couple of leftover fields whose time has passed.

Signed-off-by: Jonathan Corbet <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
Jonathan Corbet authored and Mauro Carvalho Chehab committed Jul 27, 2011
1 parent 7498469 commit 9f26392
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions drivers/media/video/marvell-ccic/mcam-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1638,7 +1638,6 @@ static void mcam_frame_complete(struct mcam_camera *cam, int frame)
clear_bit(CF_DMA_ACTIVE, &cam->flags);
cam->next_buf = frame;
cam->buf_seq[frame] = ++(cam->sequence);
cam->last_delivered = frame;
frames++;
/*
* "This should never happen"
Expand Down Expand Up @@ -1741,7 +1740,6 @@ int mccic_register(struct mcam_camera *cam)
mcam_set_config_needed(cam, 1);
cam->pix_format = mcam_def_pix_format;
cam->mbus_code = mcam_def_mbus_code;
INIT_LIST_HEAD(&cam->dev_list);
INIT_LIST_HEAD(&cam->buffers);
mcam_ctlr_init(cam);

Expand Down
3 changes: 0 additions & 3 deletions drivers/media/video/marvell-ccic/mcam-core.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,6 @@ struct mcam_camera {
struct v4l2_subdev *sensor;
unsigned short sensor_addr;

struct list_head dev_list; /* link to other devices */

/* Videobuf2 stuff */
struct vb2_queue vb_queue;
struct list_head buffers; /* Available frames */
Expand All @@ -138,7 +136,6 @@ struct mcam_camera {
/* DMA buffers - DMA modes */
struct mcam_vb_buffer *vb_bufs[MAX_DMA_BUFS];
struct vb2_alloc_ctx *vb_alloc_ctx;
unsigned short last_delivered;

/* Mode-specific ops, set at open time */
void (*dma_setup)(struct mcam_camera *cam);
Expand Down

0 comments on commit 9f26392

Please sign in to comment.