hc
2023-12-06 08f87f769b595151be1afeff53e144f543faa614
kernel/drivers/usb/serial/oti6858.c
....@@ -22,7 +22,7 @@
2222 * So, THIS CODE CAN DESTROY OTi-6858 AND ANY OTHER DEVICES, THAT ARE
2323 * CONNECTED TO IT!
2424 *
25
- * See Documentation/usb/usb-serial.txt for more information on using this
25
+ * See Documentation/usb/usb-serial.rst for more information on using this
2626 * driver
2727 *
2828 * TODO:
....@@ -393,10 +393,7 @@
393393
394394 static void oti6858_init_termios(struct tty_struct *tty)
395395 {
396
- tty->termios = tty_std_termios;
397
- tty->termios.c_cflag = B38400 | CS8 | CREAD | HUPCL | CLOCAL;
398
- tty->termios.c_ispeed = 38400;
399
- tty->termios.c_ospeed = 38400;
396
+ tty_encode_baud_rate(tty, 38400, 38400);
400397 }
401398
402399 static void oti6858_set_termios(struct tty_struct *tty,