[PATCH 4.18 180/235] tty: fix termios input-speed encoding