TTY: move tty_lookup_driver to switch-cases