tty: add tty_struct->dev pointer to corresponding device instance