Messages in this thread | | | Date | Thu, 24 Apr 2008 21:50:04 +0100 | From | Alan Cox <> | Subject | Re: Blackfin Serial Driver: Enable IR function when user application (irattach /dev/ttyBFx -s) call TIOCSETD ioctl with line discipline N_IRDA |
| |
O> Blackfin Serial Driver: Enable IR function when user application (irattach /dev/ttyBFx -s) call TIOCSETD ioctl with line discipline N_IRDA
> if (ret == 0) { > + bfin_serial_reg.tty_driver->set_ldisc = bfin_set_ldisc; > ret = platform_driver_register(&bfin_serial_driver);
This will not work when combined with the tty patches as they move the tty driver operations out of the tty driver and also make them shared and const. You need to declare two sets of tty_ops and register the correct one for your device.
Alan
| |