diff options
Diffstat (limited to 'drivers/usb/gadget/ether.c')
-rw-r--r-- | drivers/usb/gadget/ether.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/usb/gadget/ether.c b/drivers/usb/gadget/ether.c index 37252d0012a7..d006dc652e02 100644 --- a/drivers/usb/gadget/ether.c +++ b/drivers/usb/gadget/ether.c | |||
@@ -156,7 +156,7 @@ static struct usb_device_descriptor device_desc = { | |||
156 | .bLength = sizeof device_desc, | 156 | .bLength = sizeof device_desc, |
157 | .bDescriptorType = USB_DT_DEVICE, | 157 | .bDescriptorType = USB_DT_DEVICE, |
158 | 158 | ||
159 | .bcdUSB = __constant_cpu_to_le16 (0x0200), | 159 | .bcdUSB = cpu_to_le16 (0x0200), |
160 | 160 | ||
161 | .bDeviceClass = USB_CLASS_COMM, | 161 | .bDeviceClass = USB_CLASS_COMM, |
162 | .bDeviceSubClass = 0, | 162 | .bDeviceSubClass = 0, |
@@ -167,8 +167,8 @@ static struct usb_device_descriptor device_desc = { | |||
167 | * we support. (As does bNumConfigurations.) These values can | 167 | * we support. (As does bNumConfigurations.) These values can |
168 | * also be overridden by module parameters. | 168 | * also be overridden by module parameters. |
169 | */ | 169 | */ |
170 | .idVendor = __constant_cpu_to_le16 (CDC_VENDOR_NUM), | 170 | .idVendor = cpu_to_le16 (CDC_VENDOR_NUM), |
171 | .idProduct = __constant_cpu_to_le16 (CDC_PRODUCT_NUM), | 171 | .idProduct = cpu_to_le16 (CDC_PRODUCT_NUM), |
172 | /* .bcdDevice = f(hardware) */ | 172 | /* .bcdDevice = f(hardware) */ |
173 | /* .iManufacturer = DYNAMIC */ | 173 | /* .iManufacturer = DYNAMIC */ |
174 | /* .iProduct = DYNAMIC */ | 174 | /* .iProduct = DYNAMIC */ |
@@ -318,7 +318,7 @@ static int __init eth_bind(struct usb_composite_dev *cdev) | |||
318 | gadget->name, | 318 | gadget->name, |
319 | eth_config_driver.label); | 319 | eth_config_driver.label); |
320 | device_desc.bcdDevice = | 320 | device_desc.bcdDevice = |
321 | __constant_cpu_to_le16(0x0300 | 0x0099); | 321 | cpu_to_le16(0x0300 | 0x0099); |
322 | } | 322 | } |
323 | 323 | ||
324 | 324 | ||