]> err.no Git - linux-2.6/commitdiff
V4L/DVB (6694): pvrusb2: Remove obsolete global hardware type enumeration
authorMike Isely <isely@pobox.com>
Mon, 26 Nov 2007 04:55:07 +0000 (01:55 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Fri, 25 Jan 2008 21:03:02 +0000 (19:03 -0200)
Device-specific driver behavior is now defined by generic device
characteristics rather than by specific device model information.
With this change, the hardware type field can go away, thus this
change.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h
drivers/media/video/pvrusb2/pvrusb2-hdw.c

index 8c2d222960f136fbc4b9bd19e3908b99ca7d51c2..894c630c95c0f4a4814bce45eb5766b99fadf196 100644 (file)
@@ -174,8 +174,8 @@ struct pvr2_hdw {
        struct usb_device *usb_dev;
        struct usb_interface *usb_intf;
 
-       /* Device type, one of PVR2_HDW_TYPE_xxxxx */
-       unsigned int hdw_type;
+       /* Device description, anything that must adjust behavior based on
+          device specific info will use information held here. */
        const struct pvr2_device_desc *hdw_desc;
 
        /* Kernel worker thread handling */
index c56208456bc0fa8f3264a56efb84f654ccb4400d..c08162cc20ae4fbda018cccc19b23bfbd93d9a4f 100644 (file)
@@ -1831,7 +1831,6 @@ struct pvr2_hdw *pvr2_hdw_create(struct usb_interface *intf,
        hdw->controls = kzalloc(sizeof(struct pvr2_ctrl) * hdw->control_cnt,
                                GFP_KERNEL);
        if (!hdw->controls) goto fail;
-       hdw->hdw_type = hdw_type;
        hdw->hdw_desc = hdw_desc;
        for (idx = 0; idx < hdw->control_cnt; idx++) {
                cptr = hdw->controls + idx;