tty.h: make tty_port_get() static inline