diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2009-02-07 05:02:27 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-30 11:42:41 -0400 |
commit | 8ac05ae3192ce8a71fc84e4a88772cce0c09173c (patch) | |
tree | 997f2d8bbedf857b33bf62d44b9cc4cd8c7a9f73 /drivers/media/video/ivtv/ivtv-ioctl.c | |
parent | d7493e518fa98d2c30c545c518df075903bae513 (diff) |
V4L/DVB (10488): ivtv: cleanup naming conventions
Use consistent naming for pci_dev, v4l2_device and video_device.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/ivtv/ivtv-ioctl.c')
-rw-r--r-- | drivers/media/video/ivtv/ivtv-ioctl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/video/ivtv/ivtv-ioctl.c b/drivers/media/video/ivtv/ivtv-ioctl.c index e8621da26d80..9a0424298af1 100644 --- a/drivers/media/video/ivtv/ivtv-ioctl.c +++ b/drivers/media/video/ivtv/ivtv-ioctl.c | |||
@@ -770,7 +770,7 @@ static int ivtv_querycap(struct file *file, void *fh, struct v4l2_capability *vc | |||
770 | 770 | ||
771 | strlcpy(vcap->driver, IVTV_DRIVER_NAME, sizeof(vcap->driver)); | 771 | strlcpy(vcap->driver, IVTV_DRIVER_NAME, sizeof(vcap->driver)); |
772 | strlcpy(vcap->card, itv->card_name, sizeof(vcap->card)); | 772 | strlcpy(vcap->card, itv->card_name, sizeof(vcap->card)); |
773 | snprintf(vcap->bus_info, sizeof(vcap->bus_info), "PCI:%s", pci_name(itv->dev)); | 773 | snprintf(vcap->bus_info, sizeof(vcap->bus_info), "PCI:%s", pci_name(itv->pdev)); |
774 | vcap->version = IVTV_DRIVER_VERSION; /* version */ | 774 | vcap->version = IVTV_DRIVER_VERSION; /* version */ |
775 | vcap->capabilities = itv->v4l2_cap; /* capabilities */ | 775 | vcap->capabilities = itv->v4l2_cap; /* capabilities */ |
776 | return 0; | 776 | return 0; |
@@ -1517,12 +1517,12 @@ static int ivtv_log_status(struct file *file, void *fh) | |||
1517 | } | 1517 | } |
1518 | IVTV_INFO("Tuner: %s\n", | 1518 | IVTV_INFO("Tuner: %s\n", |
1519 | test_bit(IVTV_F_I_RADIO_USER, &itv->i_flags) ? "Radio" : "TV"); | 1519 | test_bit(IVTV_F_I_RADIO_USER, &itv->i_flags) ? "Radio" : "TV"); |
1520 | cx2341x_log_status(&itv->params, itv->device.name); | 1520 | cx2341x_log_status(&itv->params, itv->v4l2_dev.name); |
1521 | IVTV_INFO("Status flags: 0x%08lx\n", itv->i_flags); | 1521 | IVTV_INFO("Status flags: 0x%08lx\n", itv->i_flags); |
1522 | for (i = 0; i < IVTV_MAX_STREAMS; i++) { | 1522 | for (i = 0; i < IVTV_MAX_STREAMS; i++) { |
1523 | struct ivtv_stream *s = &itv->streams[i]; | 1523 | struct ivtv_stream *s = &itv->streams[i]; |
1524 | 1524 | ||
1525 | if (s->v4l2dev == NULL || s->buffers == 0) | 1525 | if (s->vdev == NULL || s->buffers == 0) |
1526 | continue; | 1526 | continue; |
1527 | IVTV_INFO("Stream %s: status 0x%04lx, %d%% of %d KiB (%d buffers) in use\n", s->name, s->s_flags, | 1527 | IVTV_INFO("Stream %s: status 0x%04lx, %d%% of %d KiB (%d buffers) in use\n", s->name, s->s_flags, |
1528 | (s->buffers - s->q_free.buffers) * 100 / s->buffers, | 1528 | (s->buffers - s->q_free.buffers) * 100 / s->buffers, |