USB: CP210X Use official request code definitions
commit93ef1f1fbce37f14666e4856ff933d4a1b735d02
authorCraig Shelley <craig@microtron.org.uk>
Thu, 11 Jun 2009 12:53:30 +0000 (11 13:53 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 11 Jun 2009 15:51:05 +0000 (11 08:51 -0700)
tree531852178ffbfd2b3a6756778c8624ee0334364a
parentb7c7cbc898e8a97829f33ad3bcd1b5e91690d8f4
USB: CP210X Use official request code definitions

The CP210X driver was developed without official device specifications.
This has lead to an incorrect assumption that all GET request codes are
equal to the corresponding SET request code +1.
This patch removes this incorrect assumption, and uses request code
definitions based on the updated GPL driver from SiLabs.
This modification is needed before extended functionality such as GPIO
on CP2103 can be supported.

Signed-off-by: Craig Shelley <craig@microtron.org.uk>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/usb/serial/cp210x.c