diff options
author | Craig Shelley <craig@microtron.org.uk> | 2010-08-18 17:13:39 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-08-23 23:50:15 -0400 |
commit | 72916791cbeb9cc607ae620cfba207dea481cd76 (patch) | |
tree | ed75dafc34a8ff276bd4251814f7eef4490460c0 /drivers/usb/serial/cp210x.c | |
parent | f36ecd5de93e4c85a9e3d25100c6e233155b12e5 (diff) |
USB: CP210x Fix Break On/Off
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>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/serial/cp210x.c')
-rw-r--r-- | drivers/usb/serial/cp210x.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/serial/cp210x.c b/drivers/usb/serial/cp210x.c index 2bef4415c19c..80bf8333bb03 100644 --- a/drivers/usb/serial/cp210x.c +++ b/drivers/usb/serial/cp210x.c | |||
@@ -222,8 +222,8 @@ static struct usb_serial_driver cp210x_device = { | |||
222 | #define BITS_STOP_2 0x0002 | 222 | #define BITS_STOP_2 0x0002 |
223 | 223 | ||
224 | /* CP210X_SET_BREAK */ | 224 | /* CP210X_SET_BREAK */ |
225 | #define BREAK_ON 0x0000 | 225 | #define BREAK_ON 0x0001 |
226 | #define BREAK_OFF 0x0001 | 226 | #define BREAK_OFF 0x0000 |
227 | 227 | ||
228 | /* CP210X_(SET_MHS|GET_MDMSTS) */ | 228 | /* CP210X_(SET_MHS|GET_MDMSTS) */ |
229 | #define CONTROL_DTR 0x0001 | 229 | #define CONTROL_DTR 0x0001 |