Skip to content

Commit

Permalink
[media] go7007: drop struct go7007_file
Browse files Browse the repository at this point in the history
Remove struct go7007_file: all fields contained in that struct are moved to
the go7007 struct since they are really global values. The lock has just
been deleted (what's the point of a per-fh lock??).

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Mar 24, 2013
1 parent b95dd82 commit 899eb84
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 121 deletions.
11 changes: 3 additions & 8 deletions drivers/staging/media/go7007/go7007-priv.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,14 +141,6 @@ struct go7007_buffer {
int mapped;
};

struct go7007_file {
struct v4l2_fh fh;
struct go7007 *go;
struct mutex lock;
int buf_count;
struct go7007_buffer *bufs;
};

#define GO7007_RATIO_1_1 0
#define GO7007_RATIO_4_3 1
#define GO7007_RATIO_16_9 2
Expand Down Expand Up @@ -242,6 +234,9 @@ struct go7007 {
u32 next_seq;
struct list_head stream;
wait_queue_head_t frame_waitq;
int buf_count;
struct go7007_buffer *bufs;
struct v4l2_fh *bufs_owner;

/* Audio streaming */
void (*audio_deliver)(struct go7007 *go, u8 *buf, int length);
Expand Down
Loading

0 comments on commit 899eb84

Please sign in to comment.