summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Shelley <craig@microtron.org.uk>2010-08-18 22:13:39 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2010-08-26 16:44:07 -0700
commit35bc803aac3ba077352e99b32615946678de0467 (patch)
tree59369e688d9f7233a235002e987872e2ae24ab75
parent413a44ceedbc46d5137d7285c7f989271e0f78b3 (diff)
USB: CP210x Fix Break On/Off
commit 72916791cbeb9cc607ae620cfba207dea481cd76 upstream. The definitions for BREAK_ON and BREAK_OFF are inverted, causing break requests to fail. This patch sets BREAK_ON and BREAK_OFF to the correct values. Signed-off-by: Craig Shelley <craig@microtron.org.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/usb/serial/cp210x.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/serial/cp210x.c b/drivers/usb/serial/cp210x.c
index 2128d2c36fd5..2d36ed230aab 100644
--- a/drivers/usb/serial/cp210x.c
+++ b/drivers/usb/serial/cp210x.c
@@ -223,8 +223,8 @@ static struct usb_serial_driver cp210x_device = {
#define BITS_STOP_2 0x0002
/* CP210X_SET_BREAK */
-#define BREAK_ON 0x0000
-#define BREAK_OFF 0x0001
+#define BREAK_ON 0x0001
+#define BREAK_OFF 0x0000
/* CP210X_(SET_MHS|GET_MDMSTS) */
#define CONTROL_DTR 0x0001