aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorSteven Toth <stoth@kernellabs.com>2010-07-31 15:04:59 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-10-21 05:55:04 -0400
commit96d8420d17809f0b090da3dddb26a3625b1b6e7a (patch)
tree189398cda736f327dcd0006fe4c8301dfd900ebd /drivers
parent32299a1461ef080e9d8808cf1a762c59403ac63b (diff)
[media] saa7164: rename a structure for readability
Signed-off-by: Steven Toth <stoth@kernellabs.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/video/saa7164/saa7164-encoder.c44
-rw-r--r--drivers/media/video/saa7164/saa7164.h2
2 files changed, 23 insertions, 23 deletions
diff --git a/drivers/media/video/saa7164/saa7164-encoder.c b/drivers/media/video/saa7164/saa7164-encoder.c
index 0859448bae05..22c7d8ad7256 100644
--- a/drivers/media/video/saa7164/saa7164-encoder.c
+++ b/drivers/media/video/saa7164/saa7164-encoder.c
@@ -207,7 +207,7 @@ static int saa7164_encoder_initialize(struct saa7164_port *port)
207/* -- V4L2 --------------------------------------------------------- */ 207/* -- V4L2 --------------------------------------------------------- */
208static int vidioc_s_std(struct file *file, void *priv, v4l2_std_id *id) 208static int vidioc_s_std(struct file *file, void *priv, v4l2_std_id *id)
209{ 209{
210 struct saa7164_fh *fh = file->private_data; 210 struct saa7164_encoder_fh *fh = file->private_data;
211 struct saa7164_port *port = fh->port; 211 struct saa7164_port *port = fh->port;
212 struct saa7164_dev *dev = port->dev; 212 struct saa7164_dev *dev = port->dev;
213 unsigned int i; 213 unsigned int i;
@@ -259,7 +259,7 @@ static int vidioc_enum_input(struct file *file, void *priv,
259 259
260static int vidioc_g_input(struct file *file, void *priv, unsigned int *i) 260static int vidioc_g_input(struct file *file, void *priv, unsigned int *i)
261{ 261{
262 struct saa7164_fh *fh = file->private_data; 262 struct saa7164_encoder_fh *fh = file->private_data;
263 struct saa7164_port *port = fh->port; 263 struct saa7164_port *port = fh->port;
264 struct saa7164_dev *dev = port->dev; 264 struct saa7164_dev *dev = port->dev;
265 265
@@ -275,7 +275,7 @@ static int vidioc_g_input(struct file *file, void *priv, unsigned int *i)
275 275
276static int vidioc_s_input(struct file *file, void *priv, unsigned int i) 276static int vidioc_s_input(struct file *file, void *priv, unsigned int i)
277{ 277{
278 struct saa7164_fh *fh = file->private_data; 278 struct saa7164_encoder_fh *fh = file->private_data;
279 struct saa7164_port *port = fh->port; 279 struct saa7164_port *port = fh->port;
280 struct saa7164_dev *dev = port->dev; 280 struct saa7164_dev *dev = port->dev;
281 281
@@ -295,7 +295,7 @@ static int vidioc_s_input(struct file *file, void *priv, unsigned int i)
295static int vidioc_g_tuner(struct file *file, void *priv, 295static int vidioc_g_tuner(struct file *file, void *priv,
296 struct v4l2_tuner *t) 296 struct v4l2_tuner *t)
297{ 297{
298 struct saa7164_fh *fh = file->private_data; 298 struct saa7164_encoder_fh *fh = file->private_data;
299 struct saa7164_port *port = fh->port; 299 struct saa7164_port *port = fh->port;
300 struct saa7164_dev *dev = port->dev; 300 struct saa7164_dev *dev = port->dev;
301 301
@@ -323,7 +323,7 @@ static int vidioc_s_tuner(struct file *file, void *priv,
323static int vidioc_g_frequency(struct file *file, void *priv, 323static int vidioc_g_frequency(struct file *file, void *priv,
324 struct v4l2_frequency *f) 324 struct v4l2_frequency *f)
325{ 325{
326 struct saa7164_fh *fh = file->private_data; 326 struct saa7164_encoder_fh *fh = file->private_data;
327 struct saa7164_port *port = fh->port; 327 struct saa7164_port *port = fh->port;
328 328
329 f->type = V4L2_TUNER_ANALOG_TV; 329 f->type = V4L2_TUNER_ANALOG_TV;
@@ -335,7 +335,7 @@ static int vidioc_g_frequency(struct file *file, void *priv,
335static int vidioc_s_frequency(struct file *file, void *priv, 335static int vidioc_s_frequency(struct file *file, void *priv,
336 struct v4l2_frequency *f) 336 struct v4l2_frequency *f)
337{ 337{
338 struct saa7164_fh *fh = file->private_data; 338 struct saa7164_encoder_fh *fh = file->private_data;
339 struct saa7164_port *port = fh->port; 339 struct saa7164_port *port = fh->port;
340 struct saa7164_dev *dev = port->dev; 340 struct saa7164_dev *dev = port->dev;
341 struct saa7164_port *tsport; 341 struct saa7164_port *tsport;
@@ -385,7 +385,7 @@ static int vidioc_s_frequency(struct file *file, void *priv,
385static int vidioc_g_ctrl(struct file *file, void *priv, 385static int vidioc_g_ctrl(struct file *file, void *priv,
386 struct v4l2_control *ctl) 386 struct v4l2_control *ctl)
387{ 387{
388 struct saa7164_fh *fh = file->private_data; 388 struct saa7164_encoder_fh *fh = file->private_data;
389 struct saa7164_port *port = fh->port; 389 struct saa7164_port *port = fh->port;
390 struct saa7164_dev *dev = port->dev; 390 struct saa7164_dev *dev = port->dev;
391 391
@@ -421,7 +421,7 @@ static int vidioc_g_ctrl(struct file *file, void *priv,
421static int vidioc_s_ctrl(struct file *file, void *priv, 421static int vidioc_s_ctrl(struct file *file, void *priv,
422 struct v4l2_control *ctl) 422 struct v4l2_control *ctl)
423{ 423{
424 struct saa7164_fh *fh = file->private_data; 424 struct saa7164_encoder_fh *fh = file->private_data;
425 struct saa7164_port *port = fh->port; 425 struct saa7164_port *port = fh->port;
426 struct saa7164_dev *dev = port->dev; 426 struct saa7164_dev *dev = port->dev;
427 int ret = 0; 427 int ret = 0;
@@ -520,7 +520,7 @@ static int saa7164_get_ctrl(struct saa7164_port *port,
520static int vidioc_g_ext_ctrls(struct file *file, void *priv, 520static int vidioc_g_ext_ctrls(struct file *file, void *priv,
521 struct v4l2_ext_controls *ctrls) 521 struct v4l2_ext_controls *ctrls)
522{ 522{
523 struct saa7164_fh *fh = file->private_data; 523 struct saa7164_encoder_fh *fh = file->private_data;
524 struct saa7164_port *port = fh->port; 524 struct saa7164_port *port = fh->port;
525 int i, err = 0; 525 int i, err = 0;
526 526
@@ -669,7 +669,7 @@ static int saa7164_set_ctrl(struct saa7164_port *port,
669static int vidioc_s_ext_ctrls(struct file *file, void *priv, 669static int vidioc_s_ext_ctrls(struct file *file, void *priv,
670 struct v4l2_ext_controls *ctrls) 670 struct v4l2_ext_controls *ctrls)
671{ 671{
672 struct saa7164_fh *fh = file->private_data; 672 struct saa7164_encoder_fh *fh = file->private_data;
673 struct saa7164_port *port = fh->port; 673 struct saa7164_port *port = fh->port;
674 int i, err = 0; 674 int i, err = 0;
675 675
@@ -698,7 +698,7 @@ static int vidioc_s_ext_ctrls(struct file *file, void *priv,
698static int vidioc_querycap(struct file *file, void *priv, 698static int vidioc_querycap(struct file *file, void *priv,
699 struct v4l2_capability *cap) 699 struct v4l2_capability *cap)
700{ 700{
701 struct saa7164_fh *fh = file->private_data; 701 struct saa7164_encoder_fh *fh = file->private_data;
702 struct saa7164_port *port = fh->port; 702 struct saa7164_port *port = fh->port;
703 struct saa7164_dev *dev = port->dev; 703 struct saa7164_dev *dev = port->dev;
704 704
@@ -734,7 +734,7 @@ static int vidioc_enum_fmt_vid_cap(struct file *file, void *priv,
734static int vidioc_g_fmt_vid_cap(struct file *file, void *priv, 734static int vidioc_g_fmt_vid_cap(struct file *file, void *priv,
735 struct v4l2_format *f) 735 struct v4l2_format *f)
736{ 736{
737 struct saa7164_fh *fh = file->private_data; 737 struct saa7164_encoder_fh *fh = file->private_data;
738 struct saa7164_port *port = fh->port; 738 struct saa7164_port *port = fh->port;
739 struct saa7164_dev *dev = port->dev; 739 struct saa7164_dev *dev = port->dev;
740 740
@@ -755,7 +755,7 @@ static int vidioc_g_fmt_vid_cap(struct file *file, void *priv,
755static int vidioc_try_fmt_vid_cap(struct file *file, void *priv, 755static int vidioc_try_fmt_vid_cap(struct file *file, void *priv,
756 struct v4l2_format *f) 756 struct v4l2_format *f)
757{ 757{
758 struct saa7164_fh *fh = file->private_data; 758 struct saa7164_encoder_fh *fh = file->private_data;
759 struct saa7164_port *port = fh->port; 759 struct saa7164_port *port = fh->port;
760 struct saa7164_dev *dev = port->dev; 760 struct saa7164_dev *dev = port->dev;
761 761
@@ -772,7 +772,7 @@ static int vidioc_try_fmt_vid_cap(struct file *file, void *priv,
772static int vidioc_s_fmt_vid_cap(struct file *file, void *priv, 772static int vidioc_s_fmt_vid_cap(struct file *file, void *priv,
773 struct v4l2_format *f) 773 struct v4l2_format *f)
774{ 774{
775 struct saa7164_fh *fh = file->private_data; 775 struct saa7164_encoder_fh *fh = file->private_data;
776 struct saa7164_port *port = fh->port; 776 struct saa7164_port *port = fh->port;
777 struct saa7164_dev *dev = port->dev; 777 struct saa7164_dev *dev = port->dev;
778 778
@@ -846,7 +846,7 @@ static int fill_queryctrl(struct saa7164_encoder_params *params,
846static int vidioc_queryctrl(struct file *file, void *priv, 846static int vidioc_queryctrl(struct file *file, void *priv,
847 struct v4l2_queryctrl *c) 847 struct v4l2_queryctrl *c)
848{ 848{
849 struct saa7164_fh *fh = priv; 849 struct saa7164_encoder_fh *fh = priv;
850 struct saa7164_port *port = fh->port; 850 struct saa7164_port *port = fh->port;
851 int i, next; 851 int i, next;
852 u32 id = c->id; 852 u32 id = c->id;
@@ -1061,7 +1061,7 @@ static int fops_open(struct file *file)
1061 struct saa7164_port *port = NULL; 1061 struct saa7164_port *port = NULL;
1062 struct saa7164_port *portc = NULL; 1062 struct saa7164_port *portc = NULL;
1063 struct saa7164_port *portd = NULL; 1063 struct saa7164_port *portd = NULL;
1064 struct saa7164_fh *fh; 1064 struct saa7164_encoder_fh *fh;
1065 struct list_head *list; 1065 struct list_head *list;
1066 int minor = video_devdata(file)->minor; 1066 int minor = video_devdata(file)->minor;
1067 1067
@@ -1113,7 +1113,7 @@ static int fops_open(struct file *file)
1113 1113
1114static int fops_release(struct file *file) 1114static int fops_release(struct file *file)
1115{ 1115{
1116 struct saa7164_fh *fh = file->private_data; 1116 struct saa7164_encoder_fh *fh = file->private_data;
1117 struct saa7164_port *port = fh->port; 1117 struct saa7164_port *port = fh->port;
1118 struct saa7164_dev *dev = port->dev; 1118 struct saa7164_dev *dev = port->dev;
1119 1119
@@ -1163,7 +1163,7 @@ struct saa7164_user_buffer *saa7164_enc_next_buf(struct saa7164_port *port)
1163static ssize_t fops_read(struct file *file, char __user *buffer, 1163static ssize_t fops_read(struct file *file, char __user *buffer,
1164 size_t count, loff_t *pos) 1164 size_t count, loff_t *pos)
1165{ 1165{
1166 struct saa7164_fh *fh = file->private_data; 1166 struct saa7164_encoder_fh *fh = file->private_data;
1167 struct saa7164_port *port = fh->port; 1167 struct saa7164_port *port = fh->port;
1168 struct saa7164_user_buffer *ubuf = NULL; 1168 struct saa7164_user_buffer *ubuf = NULL;
1169 struct saa7164_dev *dev = port->dev; 1169 struct saa7164_dev *dev = port->dev;
@@ -1271,7 +1271,7 @@ err:
1271 1271
1272static unsigned int fops_poll(struct file *file, poll_table *wait) 1272static unsigned int fops_poll(struct file *file, poll_table *wait)
1273{ 1273{
1274 struct saa7164_fh *fh = (struct saa7164_fh *)file->private_data; 1274 struct saa7164_encoder_fh *fh = (struct saa7164_encoder_fh *)file->private_data;
1275 struct saa7164_port *port = fh->port; 1275 struct saa7164_port *port = fh->port;
1276 struct saa7164_user_buffer *ubuf; 1276 struct saa7164_user_buffer *ubuf;
1277 unsigned int mask = 0; 1277 unsigned int mask = 0;
@@ -1327,7 +1327,7 @@ static const struct v4l2_file_operations mpeg_fops = {
1327int saa7164_g_chip_ident(struct file *file, void *fh, 1327int saa7164_g_chip_ident(struct file *file, void *fh,
1328 struct v4l2_dbg_chip_ident *chip) 1328 struct v4l2_dbg_chip_ident *chip)
1329{ 1329{
1330 struct saa7164_port *port = ((struct saa7164_fh *)fh)->port; 1330 struct saa7164_port *port = ((struct saa7164_encoder_fh *)fh)->port;
1331 struct saa7164_dev *dev = port->dev; 1331 struct saa7164_dev *dev = port->dev;
1332 dprintk(DBGLVL_ENC, "%s()\n", __func__); 1332 dprintk(DBGLVL_ENC, "%s()\n", __func__);
1333 1333
@@ -1337,7 +1337,7 @@ int saa7164_g_chip_ident(struct file *file, void *fh,
1337int saa7164_g_register(struct file *file, void *fh, 1337int saa7164_g_register(struct file *file, void *fh,
1338 struct v4l2_dbg_register *reg) 1338 struct v4l2_dbg_register *reg)
1339{ 1339{
1340 struct saa7164_port *port = ((struct saa7164_fh *)fh)->port; 1340 struct saa7164_port *port = ((struct saa7164_encoder_fh *)fh)->port;
1341 struct saa7164_dev *dev = port->dev; 1341 struct saa7164_dev *dev = port->dev;
1342 dprintk(DBGLVL_ENC, "%s()\n", __func__); 1342 dprintk(DBGLVL_ENC, "%s()\n", __func__);
1343 1343
@@ -1350,7 +1350,7 @@ int saa7164_g_register(struct file *file, void *fh,
1350int saa7164_s_register(struct file *file, void *fh, 1350int saa7164_s_register(struct file *file, void *fh,
1351 struct v4l2_dbg_register *reg) 1351 struct v4l2_dbg_register *reg)
1352{ 1352{
1353 struct saa7164_port *port = ((struct saa7164_fh *)fh)->port; 1353 struct saa7164_port *port = ((struct saa7164_encoder_fh *)fh)->port;
1354 struct saa7164_dev *dev = port->dev; 1354 struct saa7164_dev *dev = port->dev;
1355 dprintk(DBGLVL_ENC, "%s()\n", __func__); 1355 dprintk(DBGLVL_ENC, "%s()\n", __func__);
1356 1356
diff --git a/drivers/media/video/saa7164/saa7164.h b/drivers/media/video/saa7164/saa7164.h
index 0cafe8a557e5..c1b82bb2a359 100644
--- a/drivers/media/video/saa7164/saa7164.h
+++ b/drivers/media/video/saa7164/saa7164.h
@@ -171,7 +171,7 @@ struct saa7164_subid {
171 u32 card; 171 u32 card;
172}; 172};
173 173
174struct saa7164_fh { 174struct saa7164_encoder_fh {
175 struct saa7164_port *port; 175 struct saa7164_port *port;
176 u32 freq; 176 u32 freq;
177 u32 tuner_type; 177 u32 tuner_type;