diff options
Diffstat (limited to 'drivers/media/pci/saa7134/saa7134-vbi.c')
-rw-r--r-- | drivers/media/pci/saa7134/saa7134-vbi.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/drivers/media/pci/saa7134/saa7134-vbi.c b/drivers/media/pci/saa7134/saa7134-vbi.c index e9aa94b807f1..d4da18d049f3 100644 --- a/drivers/media/pci/saa7134/saa7134-vbi.c +++ b/drivers/media/pci/saa7134/saa7134-vbi.c | |||
@@ -117,8 +117,7 @@ static int buffer_prepare(struct videobuf_queue *q, | |||
117 | struct videobuf_buffer *vb, | 117 | struct videobuf_buffer *vb, |
118 | enum v4l2_field field) | 118 | enum v4l2_field field) |
119 | { | 119 | { |
120 | struct saa7134_fh *fh = q->priv_data; | 120 | struct saa7134_dev *dev = q->priv_data; |
121 | struct saa7134_dev *dev = fh->dev; | ||
122 | struct saa7134_buf *buf = container_of(vb,struct saa7134_buf,vb); | 121 | struct saa7134_buf *buf = container_of(vb,struct saa7134_buf,vb); |
123 | struct saa7134_tvnorm *norm = dev->tvnorm; | 122 | struct saa7134_tvnorm *norm = dev->tvnorm; |
124 | unsigned int lines, llength, size; | 123 | unsigned int lines, llength, size; |
@@ -141,7 +140,7 @@ static int buffer_prepare(struct videobuf_queue *q, | |||
141 | buf->vb.width = llength; | 140 | buf->vb.width = llength; |
142 | buf->vb.height = lines; | 141 | buf->vb.height = lines; |
143 | buf->vb.size = size; | 142 | buf->vb.size = size; |
144 | buf->pt = &fh->pt_vbi; | 143 | buf->pt = &dev->pt_vbi; |
145 | 144 | ||
146 | err = videobuf_iolock(q,&buf->vb,NULL); | 145 | err = videobuf_iolock(q,&buf->vb,NULL); |
147 | if (err) | 146 | if (err) |
@@ -166,8 +165,7 @@ static int buffer_prepare(struct videobuf_queue *q, | |||
166 | static int | 165 | static int |
167 | buffer_setup(struct videobuf_queue *q, unsigned int *count, unsigned int *size) | 166 | buffer_setup(struct videobuf_queue *q, unsigned int *count, unsigned int *size) |
168 | { | 167 | { |
169 | struct saa7134_fh *fh = q->priv_data; | 168 | struct saa7134_dev *dev = q->priv_data; |
170 | struct saa7134_dev *dev = fh->dev; | ||
171 | int llength,lines; | 169 | int llength,lines; |
172 | 170 | ||
173 | lines = dev->tvnorm->vbi_v_stop_0 - dev->tvnorm->vbi_v_start_0 +1; | 171 | lines = dev->tvnorm->vbi_v_stop_0 - dev->tvnorm->vbi_v_start_0 +1; |
@@ -181,8 +179,7 @@ buffer_setup(struct videobuf_queue *q, unsigned int *count, unsigned int *size) | |||
181 | 179 | ||
182 | static void buffer_queue(struct videobuf_queue *q, struct videobuf_buffer *vb) | 180 | static void buffer_queue(struct videobuf_queue *q, struct videobuf_buffer *vb) |
183 | { | 181 | { |
184 | struct saa7134_fh *fh = q->priv_data; | 182 | struct saa7134_dev *dev = q->priv_data; |
185 | struct saa7134_dev *dev = fh->dev; | ||
186 | struct saa7134_buf *buf = container_of(vb,struct saa7134_buf,vb); | 183 | struct saa7134_buf *buf = container_of(vb,struct saa7134_buf,vb); |
187 | 184 | ||
188 | saa7134_buffer_queue(dev,&dev->vbi_q,buf); | 185 | saa7134_buffer_queue(dev,&dev->vbi_q,buf); |