summaryrefslogtreecommitdiffstats
path: root/drivers/media/pci/bt8xx/bttv-driver.c
diff options
context:
space:
mode:
authorGeliang Tang <geliangtang@163.com>2015-12-22 13:38:04 -0200
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2016-02-01 07:36:48 -0200
commit03c6bdfc65f157f2de4cc98926fc26778b28b0d1 (patch)
treeb0accf69bdb4e620d65f51fc662f33b8469f2f6a /drivers/media/pci/bt8xx/bttv-driver.c
parent80fa4f07fd6d33500b26275a5405d5b49cf2ff6a (diff)
downloadop-kernel-dev-03c6bdfc65f157f2de4cc98926fc26778b28b0d1.zip
op-kernel-dev-03c6bdfc65f157f2de4cc98926fc26778b28b0d1.tar.gz
[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/bttv-driver.c')
-rw-r--r--drivers/media/pci/bt8xx/bttv-driver.c2
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);
}
OpenPOWER on IntegriCloud