diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2008-07-20 05:31:39 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-07-23 15:42:49 -0400 |
commit | 5e85e732f0ed56aa97a3ba26ac2b93ffe597a208 (patch) | |
tree | 899da0a99112d5e1b66d49d8561680f716798541 /drivers/media/video/bt8xx/bttv-driver.c | |
parent | 27a5e6d3fcce73ceeee8f3bdc9a30c4564233800 (diff) |
V4L/DVB (8428): videodev: rename 'dev' to 'parent'
The field 'dev' is not the video device, but the parent of the video device.
Rename accordingly.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/bt8xx/bttv-driver.c')
-rw-r--r-- | drivers/media/video/bt8xx/bttv-driver.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/bt8xx/bttv-driver.c b/drivers/media/video/bt8xx/bttv-driver.c index 0ea559a7fe59..3dda84d115d1 100644 --- a/drivers/media/video/bt8xx/bttv-driver.c +++ b/drivers/media/video/bt8xx/bttv-driver.c | |||
@@ -164,7 +164,7 @@ static ssize_t show_card(struct device *cd, | |||
164 | struct device_attribute *attr, char *buf) | 164 | struct device_attribute *attr, char *buf) |
165 | { | 165 | { |
166 | struct video_device *vfd = container_of(cd, struct video_device, class_dev); | 166 | struct video_device *vfd = container_of(cd, struct video_device, class_dev); |
167 | struct bttv *btv = dev_get_drvdata(vfd->dev); | 167 | struct bttv *btv = dev_get_drvdata(vfd->parent); |
168 | return sprintf(buf, "%d\n", btv ? btv->c.type : UNSET); | 168 | return sprintf(buf, "%d\n", btv ? btv->c.type : UNSET); |
169 | } | 169 | } |
170 | static DEVICE_ATTR(card, S_IRUGO, show_card, NULL); | 170 | static DEVICE_ATTR(card, S_IRUGO, show_card, NULL); |
@@ -4185,7 +4185,7 @@ static struct video_device *vdev_init(struct bttv *btv, | |||
4185 | return NULL; | 4185 | return NULL; |
4186 | *vfd = *template; | 4186 | *vfd = *template; |
4187 | vfd->minor = -1; | 4187 | vfd->minor = -1; |
4188 | vfd->dev = &btv->c.pci->dev; | 4188 | vfd->parent = &btv->c.pci->dev; |
4189 | vfd->release = video_device_release; | 4189 | vfd->release = video_device_release; |
4190 | vfd->type = type; | 4190 | vfd->type = type; |
4191 | vfd->debug = bttv_debug; | 4191 | vfd->debug = bttv_debug; |