diff options
author | Geliang Tang <geliangtang@163.com> | 2015-12-22 15:38:04 (GMT) |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2016-02-01 09:36:48 (GMT) |
commit | 03c6bdfc65f157f2de4cc98926fc26778b28b0d1 (patch) | |
tree | b0accf69bdb4e620d65f51fc662f33b8469f2f6a /drivers/media/pci/bt8xx | |
parent | 80fa4f07fd6d33500b26275a5405d5b49cf2ff6a (diff) | |
download | linux-03c6bdfc65f157f2de4cc98926fc26778b28b0d1.tar.xz |
[media] bttv-driver, usbvision-video: use to_video_device()
Use to_video_device() instead of open-coding it.
Signed-off-by: Geliang Tang <geliangtang@163.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/pci/bt8xx')
-rw-r--r-- | drivers/media/pci/bt8xx/bttv-driver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/pci/bt8xx/bttv-driver.c b/drivers/media/pci/bt8xx/bttv-driver.c index 9400e99..a04329a 100644 --- a/drivers/media/pci/bt8xx/bttv-driver.c +++ b/drivers/media/pci/bt8xx/bttv-driver.c @@ -186,7 +186,7 @@ MODULE_VERSION(BTTV_VERSION); static ssize_t show_card(struct device *cd, struct device_attribute *attr, char *buf) { - struct video_device *vfd = container_of(cd, struct video_device, dev); + struct video_device *vfd = to_video_device(cd); struct bttv *btv = video_get_drvdata(vfd); return sprintf(buf, "%d\n", btv ? btv->c.type : UNSET); } |