*
  * Locking: Caller holds @tty->termios_rwsem
  */
-static void n_tty_set_termios(struct tty_struct *tty, struct ktermios *old)
+static void n_tty_set_termios(struct tty_struct *tty, const struct ktermios *old)
 {
        struct n_tty_data *ldata = tty->disc_data;
 
 
  *     a pointer to wordsize-sensitive structure belongs here, but most of
  *     ldiscs will happily leave it %NULL.
  *
- * @set_termios: [TTY] ``void ()(struct tty_struct *tty, struct ktermios *old)``
+ * @set_termios: [TTY] ``void ()(struct tty_struct *tty, const struct ktermios *old)``
  *
  *     This function notifies the line discpline that a change has been made
  *     to the termios structure.
                        unsigned long arg);
        int     (*compat_ioctl)(struct tty_struct *tty, unsigned int cmd,
                        unsigned long arg);
-       void    (*set_termios)(struct tty_struct *tty, struct ktermios *old);
+       void    (*set_termios)(struct tty_struct *tty, const struct ktermios *old);
        __poll_t (*poll)(struct tty_struct *tty, struct file *file,
                             struct poll_table_struct *wait);
        void    (*hangup)(struct tty_struct *tty);