aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/zero.c
diff options
context:
space:
mode:
authorHarvey Harrison <harvey.harrison@gmail.com>2009-02-11 17:11:36 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2009-03-24 19:20:33 -0400
commit551509d267905705f6d723e51ec706916f06b859 (patch)
tree9dde914015af234cd4c399585037d8dca7d42e78 /drivers/usb/gadget/zero.c
parenta78b42824dd7c2b40d72fb01f1b1842f7e845f3a (diff)
USB: replace uses of __constant_{endian}
The base versions handle constant folding now. Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/gadget/zero.c')
-rw-r--r--drivers/usb/gadget/zero.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/usb/gadget/zero.c b/drivers/usb/gadget/zero.c
index 361d9659ac48..20614dce8db9 100644
--- a/drivers/usb/gadget/zero.c
+++ b/drivers/usb/gadget/zero.c
@@ -113,11 +113,11 @@ static struct usb_device_descriptor device_desc = {
113 .bLength = sizeof device_desc, 113 .bLength = sizeof device_desc,
114 .bDescriptorType = USB_DT_DEVICE, 114 .bDescriptorType = USB_DT_DEVICE,
115 115
116 .bcdUSB = __constant_cpu_to_le16(0x0200), 116 .bcdUSB = cpu_to_le16(0x0200),
117 .bDeviceClass = USB_CLASS_VENDOR_SPEC, 117 .bDeviceClass = USB_CLASS_VENDOR_SPEC,
118 118
119 .idVendor = __constant_cpu_to_le16(DRIVER_VENDOR_NUM), 119 .idVendor = cpu_to_le16(DRIVER_VENDOR_NUM),
120 .idProduct = __constant_cpu_to_le16(DRIVER_PRODUCT_NUM), 120 .idProduct = cpu_to_le16(DRIVER_PRODUCT_NUM),
121 .bNumConfigurations = 2, 121 .bNumConfigurations = 2,
122}; 122};
123 123
@@ -265,7 +265,7 @@ static int __init zero_bind(struct usb_composite_dev *cdev)
265 */ 265 */
266 pr_warning("%s: controller '%s' not recognized\n", 266 pr_warning("%s: controller '%s' not recognized\n",
267 longname, gadget->name); 267 longname, gadget->name);
268 device_desc.bcdDevice = __constant_cpu_to_le16(0x9999); 268 device_desc.bcdDevice = cpu_to_le16(0x9999);
269 } 269 }
270 270
271 271