#endif
/************************************************************************
- * SLCAN ENCAPSULATION FORMAT *
+ * SLCAN ENCAPSULATION FORMAT *
************************************************************************/
/*
*/
/************************************************************************
- * STANDARD SLCAN DECAPSULATION *
+ * STANDARD SLCAN DECAPSULATION *
************************************************************************/
static int asc2nibble(char c)
}
/************************************************************************
- * STANDARD SLCAN ENCAPSULATION *
+ * STANDARD SLCAN ENCAPSULATION *
************************************************************************/
/* Encapsulate one can_frame and stuff into a TTY queue. */
sl = netdev_priv(dev);
/* Initialize channel control data */
- sl->magic = SLCAN_MAGIC;
- sl->dev = dev;
+ sl->magic = SLCAN_MAGIC;
+ sl->dev = dev;
spin_lock_init(&sl->lock);
slcan_devs[i] = dev;
#else
static struct tty_ldisc_ops slc_ldisc = {
#endif
- .owner = THIS_MODULE,
- .magic = TTY_LDISC_MAGIC,
- .name = "slcan",
- .open = slcan_open,
- .close = slcan_close,
+ .owner = THIS_MODULE,
+ .magic = TTY_LDISC_MAGIC,
+ .name = "slcan",
+ .open = slcan_open,
+ .close = slcan_close,
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,31)
- .hangup = slcan_hangup,
+ .hangup = slcan_hangup,
#endif
.ioctl = slcan_ioctl,
.receive_buf = slcan_receive_buf,
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,16)
- .receive_room = slcan_receive_room,
+ .receive_room = slcan_receive_room,
#endif
.write_wakeup = slcan_write_wakeup,
};