Commit b3aceb2b authored by Andrew Morton's avatar Andrew Morton Committed by Greg Kroah-Hartman
Browse files

USB: mct_u232-convert-to-proper-speed-handling-api-fix



Make Pete happy

Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Pete Zaitcev <zaitcev@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 3f6ff6ef
...@@ -206,20 +206,20 @@ static int mct_u232_calculate_baud_rate(struct usb_serial *serial, speed_t value ...@@ -206,20 +206,20 @@ static int mct_u232_calculate_baud_rate(struct usb_serial *serial, speed_t value
} }
} else { } else {
switch (value) { switch (value) {
case 300: break; case 300: break;
case 600: break; case 600: break;
case 1200: break; case 1200: break;
case 2400: break; case 2400: break;
case 4800: break; case 4800: break;
case 9600: break; case 9600: break;
case 19200: break; case 19200: break;
case 38400: break; case 38400: break;
case 57600: break; case 57600: break;
case 115200: break; case 115200: break;
default: default:
err("MCT USB-RS232: unsupported baudrate request 0x%x," err("MCT USB-RS232: unsupported baudrate request 0x%x,"
" using default of B9600", value); " using default of B9600", value);
value = 9600; value = 9600;
} }
return 115200/value; return 115200/value;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment