diff options
author | Daniel Scheller <d.scheller@gmx.net> | 2018-04-09 18:47:45 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2018-05-04 16:40:30 +0200 |
commit | 60586360f14e6651d00afa826515e0addb877aeb (patch) | |
tree | cd4c47e7fc2b85729f7c08baccc77b9cfdaf4fba /drivers/media/pci/ddbridge | |
parent | media: ddbridge: fix output buffer check (diff) | |
download | linux-60586360f14e6651d00afa826515e0addb877aeb.tar.xz linux-60586360f14e6651d00afa826515e0addb877aeb.zip |
media: ddbridge: set devid entry for link 0
Currently, /sys/class/ddbridgeX/devid always reports 0 due to devid not
being set at all. Set the devid field alongside while storing all other
hardware ID data.
Picked up from the upstream dddvb-0.9.33 release.
Signed-off-by: Daniel Scheller <d.scheller@gmx.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/pci/ddbridge')
-rw-r--r-- | drivers/media/pci/ddbridge/ddbridge-main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/pci/ddbridge/ddbridge-main.c b/drivers/media/pci/ddbridge/ddbridge-main.c index 008be9066814..6356b48b3874 100644 --- a/drivers/media/pci/ddbridge/ddbridge-main.c +++ b/drivers/media/pci/ddbridge/ddbridge-main.c @@ -198,6 +198,7 @@ static int ddb_probe(struct pci_dev *pdev, dev->link[0].ids.device = id->device; dev->link[0].ids.subvendor = id->subvendor; dev->link[0].ids.subdevice = pdev->subsystem_device; + dev->link[0].ids.devid = (id->device << 16) | id->vendor; dev->link[0].dev = dev; dev->link[0].info = get_ddb_info(id->vendor, id->device, |