usb: cdc_ether: Add rmnet device info to PH450 and Tango
Mohan T [Mon, 25 Jun 2012 05:36:17 +0000 (10:36 +0530)]
Modified device info element for PH450 and Tango to
sync with framework.

Change-Id: I325571358f8c1875484254a9f497c606adb03180
Signed-off-by: Mohan T <mohant@nvidia.com>
Reviewed-on: http://git-master/r/110765
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthieu Vincenot <mvincenot@nvidia.com>
Reviewed-by: Steve Lin <stlin@nvidia.com>

drivers/net/usb/cdc_ether.c

index aa826d9..c31b118 100644 (file)
@@ -469,6 +469,15 @@ static const struct driver_info wwan_info = {
        .manage_power = cdc_manage_power,
 };
 
+static const struct driver_info rmnet_info = {
+       .description =  "Mobile Broadband Network Device",
+       .flags =        FLAG_RMNET,
+       .bind =         usbnet_cdc_bind,
+       .unbind =       usbnet_cdc_unbind,
+       .status =       usbnet_cdc_status,
+       .manage_power = cdc_manage_power,
+};
+
 /*-------------------------------------------------------------------------*/
 
 #define HUAWEI_VENDOR_ID       0x12D1
@@ -575,17 +584,17 @@ static const struct usb_device_id products [] = {
        .match_flags = USB_DEVICE_ID_MATCH_INT_INFO
                | USB_DEVICE_ID_MATCH_DEVICE,
        USB_DEVICE(0x1983, 0x0310),
-       .driver_info = (unsigned long)&wwan_info,
+       .driver_info = (unsigned long)&rmnet_info,
 }, {
        .match_flags = USB_DEVICE_ID_MATCH_INT_INFO
                | USB_DEVICE_ID_MATCH_DEVICE,
        USB_DEVICE(0x1983, 0x0321),
-       .driver_info = (unsigned long)&wwan_info,
+       .driver_info = (unsigned long)&rmnet_info,
 }, {
        .match_flags = USB_DEVICE_ID_MATCH_INT_INFO
                | USB_DEVICE_ID_MATCH_DEVICE,
        USB_DEVICE(0x1983, 0x0327),     /* 5AE */
-       .driver_info = (unsigned long)&wwan_info,
+       .driver_info = (unsigned long)&rmnet_info,
 },
 
 /* Tango module */
@@ -593,7 +602,7 @@ static const struct usb_device_id   products [] = {
        .match_flags = USB_DEVICE_ID_MATCH_INT_INFO
                 | USB_DEVICE_ID_MATCH_DEVICE,
        USB_DEVICE(0x0489,0xE03A),
-       .driver_info = (unsigned long)&wwan_info,
+       .driver_info = (unsigned long)&rmnet_info,
 },
 /*
  * WHITELIST!!!