Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 95231
b: refs/heads/master
c: 56dbbb9
h: refs/heads/master
i:
  95229: 3032732
  95227: 2e79544
  95223: 2460769
  95215: f7a56a7
  95199: fdbfb75
  95167: 513ef84
  95103: 160846e
  94975: fc5b720
  94719: 0d82d2f
  94207: c5beeab
v: v3
  • Loading branch information
Alan Cox authored and Linus Torvalds committed Apr 30, 2008
1 parent 1245e8a commit 9386f16
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3e8e88ca053150efdbecb45d8f481cf560ec808d
refs/heads/master: 56dbbb9a5704f665068778d4d2c1bdf757756e60
24 changes: 15 additions & 9 deletions trunk/drivers/net/wan/pc300_tty.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,20 @@ static void cpc_tty_signal_on(pc300dev_t *pc300dev, unsigned char signal)
CPC_TTY_UNLOCK(card,flags);
}


static const struct tty_operations pc300_ops = {
.open = cpc_tty_open,
.close = cpc_tty_close,
.write = cpc_tty_write,
.write_room = cpc_tty_write_room,
.chars_in_buffer = cpc_tty_chars_in_buffer,
.tiocmset = pc300_tiocmset,
.tiocmget = pc300_tiocmget,
.flush_buffer = cpc_tty_flush_buffer,
.hangup = cpc_tty_hangup,
};


/*
* PC300 TTY initialization routine
*
Expand Down Expand Up @@ -225,15 +239,7 @@ void cpc_tty_init(pc300dev_t *pc300dev)
serial_drv.flags = TTY_DRIVER_REAL_RAW;

/* interface routines from the upper tty layer to the tty driver */
serial_drv.open = cpc_tty_open;
serial_drv.close = cpc_tty_close;
serial_drv.write = cpc_tty_write;
serial_drv.write_room = cpc_tty_write_room;
serial_drv.chars_in_buffer = cpc_tty_chars_in_buffer;
serial_drv.tiocmset = pc300_tiocmset;
serial_drv.tiocmget = pc300_tiocmget;
serial_drv.flush_buffer = cpc_tty_flush_buffer;
serial_drv.hangup = cpc_tty_hangup;
tty_set_operations(&serial_drv, &pc300_ops);

/* register the TTY driver */
if (tty_register_driver(&serial_drv)) {
Expand Down

0 comments on commit 9386f16

Please sign in to comment.