aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx18/cx18-ioctl.c
diff options
context:
space:
mode:
authorAndy Walls <awalls@radix.net>2009-01-10 19:54:39 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-30 11:42:25 -0400
commit3d05913d894a460b7dc8e5d93415fde21b986411 (patch)
tree04a2216afdbbf27230dd364107d5d1dcb7f13057 /drivers/media/video/cx18/cx18-ioctl.c
parente0f28b6a69b73ebf610f4f9759999bcdabdcda8e (diff)
V4L/DVB (10280): cx18: Rename structure members: dev to pci_dev and v4l2dev to video_dev
Renamed structure member name to be more specific to type in anticipation of updating to the v4l2_device/v4l2_subdev framework. Too many objects named "dev" and /v4l2_\{0,1\}dev/ would be to confusing. Signed-off-by: Andy Walls <awalls@radix.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/cx18/cx18-ioctl.c')
-rw-r--r--drivers/media/video/cx18/cx18-ioctl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/media/video/cx18/cx18-ioctl.c b/drivers/media/video/cx18/cx18-ioctl.c
index f38ca207cad..20467fce525 100644
--- a/drivers/media/video/cx18/cx18-ioctl.c
+++ b/drivers/media/video/cx18/cx18-ioctl.c
@@ -335,7 +335,8 @@ static int cx18_querycap(struct file *file, void *fh,
335 335
336 strlcpy(vcap->driver, CX18_DRIVER_NAME, sizeof(vcap->driver)); 336 strlcpy(vcap->driver, CX18_DRIVER_NAME, sizeof(vcap->driver));
337 strlcpy(vcap->card, cx->card_name, sizeof(vcap->card)); 337 strlcpy(vcap->card, cx->card_name, sizeof(vcap->card));
338 snprintf(vcap->bus_info, sizeof(vcap->bus_info), "PCI:%s", pci_name(cx->dev)); 338 snprintf(vcap->bus_info, sizeof(vcap->bus_info),
339 "PCI:%s", pci_name(cx->pci_dev));
339 vcap->version = CX18_DRIVER_VERSION; /* version */ 340 vcap->version = CX18_DRIVER_VERSION; /* version */
340 vcap->capabilities = cx->v4l2_cap; /* capabilities */ 341 vcap->capabilities = cx->v4l2_cap; /* capabilities */
341 return 0; 342 return 0;
@@ -732,7 +733,7 @@ static int cx18_log_status(struct file *file, void *fh)
732 for (i = 0; i < CX18_MAX_STREAMS; i++) { 733 for (i = 0; i < CX18_MAX_STREAMS; i++) {
733 struct cx18_stream *s = &cx->streams[i]; 734 struct cx18_stream *s = &cx->streams[i];
734 735
735 if (s->v4l2dev == NULL || s->buffers == 0) 736 if (s->video_dev == NULL || s->buffers == 0)
736 continue; 737 continue;
737 CX18_INFO("Stream %s: status 0x%04lx, %d%% of %d KiB (%d buffers) in use\n", 738 CX18_INFO("Stream %s: status 0x%04lx, %d%% of %d KiB (%d buffers) in use\n",
738 s->name, s->s_flags, 739 s->name, s->s_flags,