Messages in this thread | | | Date | Fri, 2 May 2008 13:56:18 +0100 | From | Alan Cox <> | Subject | Re: [PATCH 5/7] PPS: serial clients support. |
| |
> So I should rewrite the uart_handle_dcd_change() as follow? > > static inline void > uart_handle_dcd_change(struct uart_port *port, unsigned int status) > { > struct uart_info *info = port->info; > struct tty_struct *tty = info->tty; > struct tty_ldisc *ld; > > ld = tty_ldisc_ref(tty); > if (ld != NULL) { > if (ld->dcd_change) > (ld->dcd_change)(tty, port, status); > tty_ldisc_deref(ld); > } > > port->icount.dcd++; > > #ifdef CONFIG_HARD_PPS > if ((port->flags & UPF_HARDPPS_CD) && status) > hardpps(); > #endif
The ifdef bit can go - it will be in your dcd_change callback ..
Alan
| |