brd->iobase     = pci_resource_start(pdev, 1);
                brd->iobase_end = pci_resource_end(pdev, 1);
-               brd->iobase     = ((unsigned int) (brd->iobase)) & 0xFFFE;
+               brd->iobase     = ((unsigned int)(brd->iobase)) & 0xFFFE;
 
                /* Assign the board_ops struct */
                brd->bd_ops = &dgnc_cls_ops;
        /* init our poll helper tasklet */
        tasklet_init(&brd->helper_tasklet,
                     brd->bd_ops->tasklet,
-                    (unsigned long) brd);
+                    (unsigned long)brd);
 
        spin_lock_irqsave(&dgnc_global_lock, flags);
        brd->msgbuf = NULL;
 
        new_time = dgnc_poll_time - jiffies;
 
-       if ((ulong) new_time >= 2 * dgnc_poll_tick)
+       if ((ulong)new_time >= 2 * dgnc_poll_tick)
                dgnc_poll_time = jiffies + dgnc_jiffies_from_ms(dgnc_poll_tick);
 
        setup_timer(&dgnc_poll_timer, dgnc_poll_handler, 0);
 
 long dgnc_mgmt_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
 {
        unsigned long flags;
-       void __user *uarg = (void __user *) arg;
+       void __user *uarg = (void __user *)arg;
 
        switch (cmd) {
        case DIGI_GETDD:
                di.info_bdtype = dgnc_Board[brd]->dpatype;
                di.info_bdstate = dgnc_Board[brd]->dpastatus;
                di.info_ioport = 0;
-               di.info_physaddr = (ulong) dgnc_Board[brd]->membase;
-               di.info_physsize = (ulong) dgnc_Board[brd]->membase
+               di.info_physaddr = (ulong)dgnc_Board[brd]->membase;
+               di.info_physsize = (ulong)dgnc_Board[brd]->membase
                        - dgnc_Board[brd]->membase_end;
                if (dgnc_Board[brd]->state != BOARD_FAILED)
                        di.info_nports = dgnc_Board[brd]->nasync;
 
        if (!tty || tty->magic != TTY_MAGIC)
                return;
 
-       un = (struct un_t *) tty->driver_data;
+       un = (struct un_t *)tty->driver_data;
        if (!un || un->magic != DGNC_UNIT_MAGIC)
                return;
 
  */
 static void neo_tasklet(unsigned long data)
 {
-       struct dgnc_board *bd = (struct dgnc_board *) data;
+       struct dgnc_board *bd = (struct dgnc_board *)data;
        struct channel_t *ch;
        unsigned long flags;
        int i;
                        break;
 
                /* Make sure we don't go over the end of our queue */
-               n = min(((uint) total), (RQUEUESIZE - (uint) head));
+               n = min(((uint)total), (RQUEUESIZE - (uint)head));
 
                /*
                 * Cut down n even further if needed, this is to fix
                }
 
                memcpy_fromio(ch->ch_rqueue + head, &ch->ch_neo_uart->txrxburst, 1);
-               ch->ch_equeue[head] = (unsigned char) linestatus;
+               ch->ch_equeue[head] = (unsigned char)linestatus;
 
                /* Ditch any remaining linestatus value. */
                linestatus = 0;
        if (!tty || tty->magic != TTY_MAGIC)
                return -ENXIO;
 
-       un = (struct un_t *) tty->driver_data;
+       un = (struct un_t *)tty->driver_data;
        if (!un || un->magic != DGNC_UNIT_MAGIC)
                return -ENXIO;
 
 
                n = readb(&ch->ch_neo_uart->tfifo);
 
-               if ((unsigned int) n > ch->ch_t_tlevel)
+               if ((unsigned int)n > ch->ch_t_tlevel)
                        goto exit_unlock;
 
                n = UART_17158_TX_FIFOSIZE - ch->ch_t_tlevel;
 
                 */
                if ((un->un_type == DGNC_PRINT) && (ch->ch_flags & CH_PRON)) {
                        dgnc_wmove(ch, ch->ch_digi.digi_offstr,
-                               (int) ch->ch_digi.digi_offlen);
+                               (int)ch->ch_digi.digi_offlen);
                        ch->ch_flags &= ~CH_PRON;
                }
 
                 */
                if ((un->un_type == DGNC_PRINT) && (ch->ch_flags & CH_PRON)) {
                        dgnc_wmove(ch, ch->ch_digi.digi_offstr,
-                               (int) ch->ch_digi.digi_offlen);
+                               (int)ch->ch_digi.digi_offlen);
                        ch->ch_flags &= ~CH_PRON;
                }
        }
         */
        if ((un->un_type == DGNC_PRINT) && !(ch->ch_flags & CH_PRON)) {
                dgnc_wmove(ch, ch->ch_digi.digi_onstr,
-                   (int) ch->ch_digi.digi_onlen);
+                   (int)ch->ch_digi.digi_onlen);
                head = (ch->ch_w_head) & tmask;
                ch->ch_flags |= CH_PRON;
        }
         */
        if ((un->un_type != DGNC_PRINT) && (ch->ch_flags & CH_PRON)) {
                dgnc_wmove(ch, ch->ch_digi.digi_offstr,
-                       (int) ch->ch_digi.digi_offlen);
+                       (int)ch->ch_digi.digi_offlen);
                head = (ch->ch_w_head) & tmask;
                ch->ch_flags &= ~CH_PRON;
        }
        struct un_t *un;
        int rc;
        unsigned long flags;
-       void __user *uarg = (void __user *) arg;
+       void __user *uarg = (void __user *)arg;
 
        if (!tty || tty->magic != TTY_MAGIC)
                return -ENODEV;
                spin_unlock_irqrestore(&ch->ch_lock, flags);
 
                rc = put_user(C_CLOCAL(tty) ? 1 : 0,
-                             (unsigned long __user *) arg);
+                             (unsigned long __user *)arg);
                return rc;
 
        case TIOCSSOFTCAR:
 
                spin_unlock_irqrestore(&ch->ch_lock, flags);
-               rc = get_user(arg, (unsigned long __user *) arg);
+               rc = get_user(arg, (unsigned long __user *)arg);
                if (rc)
                        return rc;
 
                         * could sleep
                        */
                        spin_unlock_irqrestore(&ch->ch_lock, flags);
-                       rc = get_user(loopback, (unsigned int __user *) arg);
+                       rc = get_user(loopback, (unsigned int __user *)arg);
                        if (rc)
                                return rc;
                        spin_lock_irqsave(&ch->ch_lock, flags);
 
        case DIGI_GETCUSTOMBAUD:
                spin_unlock_irqrestore(&ch->ch_lock, flags);
-               rc = put_user(ch->ch_custom_speed, (unsigned int __user *) arg);
+               rc = put_user(ch->ch_custom_speed, (unsigned int __user *)arg);
                return rc;
 
        case DIGI_SETCUSTOMBAUD:
                int new_rate;
                /* Let go of locks when accessing user space, could sleep */
                spin_unlock_irqrestore(&ch->ch_lock, flags);
-               rc = get_user(new_rate, (int __user *) arg);
+               rc = get_user(new_rate, (int __user *)arg);
                if (rc)
                        return rc;
                spin_lock_irqsave(&ch->ch_lock, flags);
                unsigned char c;
 
                spin_unlock_irqrestore(&ch->ch_lock, flags);
-               rc = get_user(c, (unsigned char __user *) arg);
+               rc = get_user(c, (unsigned char __user *)arg);
                if (rc)
                        return rc;
                spin_lock_irqsave(&ch->ch_lock, flags);
                        events |= (EV_IPU | EV_IPS);
 
                spin_unlock_irqrestore(&ch->ch_lock, flags);
-               rc = put_user(events, (unsigned int __user *) arg);
+               rc = put_user(events, (unsigned int __user *)arg);
                return rc;
        }