[media] dvb-usb: create one media_dev per adapter
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 13 Feb 2015 13:08:17 +0000 (10:08 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 26 Feb 2015 12:52:26 +0000 (09:52 -0300)
commita3dfc6d925ca1bbd1a228253acb93f08657bad25
treebb9d146b49bfa1fb5704cff6059c6bc0842d309d
parent496ccf92b9b5342b995a711829de76c320a916b6
[media] dvb-usb: create one media_dev per adapter

Instead of assuming just one adapter, change the code to store
one media controller per adapter.

This works fine for dvb-usb, as, on all drivers here, it is not
possible to write a media graph that would mix resources between
the two different adapters.

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/usb/dvb-usb/dvb-usb-dvb.c
drivers/media/usb/dvb-usb/dvb-usb.h