diff options
Diffstat (limited to 'sys/dev/syscons/syscons.c')
-rw-r--r-- | sys/dev/syscons/syscons.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c index 4cff39f..552aacd 100644 --- a/sys/dev/syscons/syscons.c +++ b/sys/dev/syscons/syscons.c @@ -205,7 +205,6 @@ CONS_DRIVER(sc, sccnprobe, sccninit, sccnterm, sccngetc, sccncheckc, sccnputc); static d_open_t scopen; static d_close_t scclose; static d_read_t scread; -static d_write_t scwrite; static d_ioctl_t scioctl; static d_mmap_t scmmap; @@ -213,7 +212,7 @@ static struct cdevsw sc_cdevsw = { /* open */ scopen, /* close */ scclose, /* read */ scread, - /* write */ scwrite, + /* write */ ttywrite, /* ioctl */ scioctl, /* poll */ ttypoll, /* mmap */ scmmap, @@ -579,18 +578,9 @@ scclose(dev_t dev, int flag, int mode, struct proc *p) int scread(dev_t dev, struct uio *uio, int flag) { - struct tty *tp = dev->si_tty; sc_touch_scrn_saver(); - return((*linesw[tp->t_line].l_read)(tp, uio, flag)); -} - -int -scwrite(dev_t dev, struct uio *uio, int flag) -{ - struct tty *tp = dev->si_tty; - - return((*linesw[tp->t_line].l_write)(tp, uio, flag)); + return(ttyread(dev, uio, flag)); } static int |