summaryrefslogtreecommitdiffstats
path: root/sys/dev/syscons/syscons.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/syscons/syscons.c')
-rw-r--r--sys/dev/syscons/syscons.c25
1 files changed, 11 insertions, 14 deletions
diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c
index 0edbc49..1cf572b 100644
--- a/sys/dev/syscons/syscons.c
+++ b/sys/dev/syscons/syscons.c
@@ -212,20 +212,17 @@ static d_ioctl_t scioctl;
static d_mmap_t scmmap;
static struct cdevsw sc_cdevsw = {
- /* open */ scopen,
- /* close */ scclose,
- /* read */ scread,
- /* write */ ttywrite,
- /* ioctl */ scioctl,
- /* poll */ ttypoll,
- /* mmap */ scmmap,
- /* strategy */ nostrategy,
- /* name */ "sc",
- /* maj */ CDEV_MAJOR,
- /* dump */ nodump,
- /* psize */ nopsize,
- /* flags */ D_TTY | D_KQFILTER,
- /* kqfilter */ ttykqfilter
+ .d_open = scopen,
+ .d_close = scclose,
+ .d_read = scread,
+ .d_write = ttywrite,
+ .d_ioctl = scioctl,
+ .d_poll = ttypoll,
+ .d_mmap = scmmap,
+ .d_name = "sc",
+ .d_maj = CDEV_MAJOR,
+ .d_flags = D_TTY | D_KQFILTER,
+ .d_kqfilter = ttykqfilter
};
int
OpenPOWER on IntegriCloud