[media] dvb_usb_v2: move (struct usb_data_stream_properties) to upper level
authorAntti Palosaari <crope@iki.fi>
Tue, 29 May 2012 19:12:17 +0000 (16:12 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 4 Aug 2012 10:56:24 +0000 (07:56 -0300)
Move USB stream properties from frontend to adapter.
It is property of adapter.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-usb/dvb_usb.h
drivers/media/dvb/dvb-usb/dvb_usb_dvb.c

index 51cb388f928c596e52d5b7cb9ab2972f71ec424f..6ce97975bd03e7e2c68a97bbd74939506580054a 100644 (file)
@@ -129,8 +129,6 @@ struct dvb_usb_adapter_fe_properties {
        int (*frontend_attach) (struct dvb_usb_adapter *);
        int (*tuner_attach)    (struct dvb_usb_adapter *);
 
-       struct usb_data_stream_properties stream;
-
        int size_of_priv;
 };
 
@@ -144,6 +142,7 @@ struct dvb_usb_adapter_properties {
 
        int num_frontends;
        struct dvb_usb_adapter_fe_properties fe[MAX_NO_OF_FE_PER_ADAP];
+       struct usb_data_stream_properties stream;
 };
 
 /**
index f196c0dc420e98b0dec7d124931f9b6f347650ea..7fcbcc3e5b7fabcbe36973afdaaf87b0c53ff062 100644 (file)
@@ -47,7 +47,7 @@ int dvb_usb_adapter_stream_init(struct dvb_usb_adapter *adap)
                if (ret < 0)
                        return ret;
        } else {
-               stream_props = adap->props.fe[0].stream;
+               stream_props = adap->props.stream;
        }
 
        /* FIXME: can be removed as set later in anyway */
@@ -139,7 +139,7 @@ static int dvb_usb_ctrl_feed(struct dvb_demux_feed *dvbdmxfeed, int onoff)
                        if (ret < 0)
                                return ret;
                } else {
-                       stream_props = adap->props.fe[adap->active_fe].stream;
+                       stream_props = adap->props.stream;
                }
 
                deb_ts("submitting all URBs\n");