ChangeSet 1.2000.6.24, 2004/10/20 16:49:07-07:00, [EMAIL PROTECTED]

[PATCH] USB Gadget: Use proper BCD values

This updates an earlier patch that added bcdDevice values for a new
USB peripheral controller.  The values weren't valid BCD numbers.



Signed-off-by: Alan Stern <[EMAIL PROTECTED]>
Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>


 drivers/usb/gadget/ether.c        |    2 +-
 drivers/usb/gadget/file_storage.c |    2 +-
 drivers/usb/gadget/zero.c         |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)


diff -Nru a/drivers/usb/gadget/ether.c b/drivers/usb/gadget/ether.c
--- a/drivers/usb/gadget/ether.c        2004-10-22 16:13:28 -07:00
+++ b/drivers/usb/gadget/ether.c        2004-10-22 16:13:28 -07:00
@@ -2320,7 +2320,7 @@
        } else if (gadget_is_lh7a40x(gadget)) {
                device_desc.bcdDevice = __constant_cpu_to_le16 (0x0209);
        } else if (gadget_is_n9604(gadget)) {
-               device_desc.bcdDevice = __constant_cpu_to_le16 (0x020a);
+               device_desc.bcdDevice = __constant_cpu_to_le16 (0x0210);
        } else {
                /* can't assume CDC works.  don't want to default to
                 * anything less functional on CDC-capable hardware,
diff -Nru a/drivers/usb/gadget/file_storage.c b/drivers/usb/gadget/file_storage.c
--- a/drivers/usb/gadget/file_storage.c 2004-10-22 16:13:28 -07:00
+++ b/drivers/usb/gadget/file_storage.c 2004-10-22 16:13:28 -07:00
@@ -3736,7 +3736,7 @@
                else if (gadget_is_lh7a40x(fsg->gadget))
                        mod_data.release = __constant_cpu_to_le16 (0x0309);
                else if (gadget_is_n9604(fsg->gadget))
-                       mod_data.release = __constant_cpu_to_le16 (0x030a);
+                       mod_data.release = __constant_cpu_to_le16 (0x0310);
                else {
                        WARN(fsg, "controller '%s' not recognized\n",
                                fsg->gadget->name);
diff -Nru a/drivers/usb/gadget/zero.c b/drivers/usb/gadget/zero.c
--- a/drivers/usb/gadget/zero.c 2004-10-22 16:13:28 -07:00
+++ b/drivers/usb/gadget/zero.c 2004-10-22 16:13:28 -07:00
@@ -1189,7 +1189,7 @@
        } else if (gadget_is_lh7a40x(gadget)) {
                device_desc.bcdDevice = __constant_cpu_to_le16 (0x0209);
        } else if (gadget_is_n9604(gadget)) {
-               device_desc.bcdDevice = __constant_cpu_to_le16 (0x020a);
+               device_desc.bcdDevice = __constant_cpu_to_le16 (0x0210);
        } else {
                /* gadget zero is so simple (for now, no altsettings) that
                 * it SHOULD NOT have problems with bulk-capable hardware.



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to