]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
USB: serial gadget: descriptor cleanup
authorDavid Brownell <david-b@pacbell.net>
Wed, 7 May 2008 21:27:37 +0000 (14:27 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 14 May 2008 17:00:28 +0000 (10:00 -0700)
commitb9370332f4879360ef7126f7a19c660e87084290
treef5538d78a167514912e84bccd3554cf6d0bf370f
parent734d37c654569f03156f8603a9761c402a73aa20
USB: serial gadget: descriptor cleanup

Bugfix some serial gadget descriptors:

 - Stop mangling the low bits (controller type ID) of bcdDevice;
   just use the high bits for a driver revision code.

 - Serial numbers that aren't specific to individual devices
   are useless; stop reporting "0" for this.

 - Since it's not part of a CDC-conformant function, the "bulk only"
   configuration shouldn't be using "CDC Data" as its interface class.
   Switch over to using CLASS_VENDOR_SPEC (different value, 0xff).

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Cc: Al Borchers <alborchers@steinerpoint.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/serial.c