* Routines looking at TTY side.
******************************************/
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16)
-#else
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,16)
static int slcan_receive_room(struct tty_struct *tty)
{
return 65536; /* We can handle an infinite amount of data. :-) */
sl->line = tty_devnum(tty);
sl->pid = current->pid;
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16)
-#else
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,16)
/* FIXME: already done before we were called - seems this can go */
if (tty->driver->flush_buffer)
tty->driver->flush_buffer(tty);
.close = slcan_close,
.ioctl = slcan_ioctl,
.receive_buf = slcan_receive_buf,
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16)
-#else
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,16)
.receive_room = slcan_receive_room,
#endif
.write_wakeup = slcan_write_wakeup,