diff options
author | phk <phk@FreeBSD.org> | 2004-02-14 20:03:36 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-02-14 20:03:36 +0000 |
commit | 0b3ced28d7e015675855cfbb6440bf255287b58b (patch) | |
tree | 101d351a2b11a63c36eee8975e52e858652dc5c8 /sys | |
parent | 62ecc1aa59ee9a6e864d3002674570c3e4819f21 (diff) | |
download | FreeBSD-src-0b3ced28d7e015675855cfbb6440bf255287b58b.zip FreeBSD-src-0b3ced28d7e015675855cfbb6440bf255287b58b.tar.gz |
Use standard style for cdevsw initialization.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/led/led.c | 4 | ||||
-rw-r--r-- | sys/kern/tty_cons.c | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/sys/dev/led/led.c b/sys/dev/led/led.c index b2e44e9..77c68ef 100644 --- a/sys/dev/led/led.c +++ b/sys/dev/led/led.c @@ -211,8 +211,8 @@ led_write(dev_t dev, struct uio *uio, int ioflag) } static struct cdevsw led_cdevsw = { - .d_write = led_write, - .d_name = "LED", + .d_write = led_write, + .d_name = "LED", }; dev_t diff --git a/sys/kern/tty_cons.c b/sys/kern/tty_cons.c index 835c35a..272cc4a 100644 --- a/sys/kern/tty_cons.c +++ b/sys/kern/tty_cons.c @@ -72,6 +72,11 @@ static d_ioctl_t cnioctl; static d_poll_t cnpoll; static d_kqfilter_t cnkqfilter; +/* + * XXX: We really want major #0, but zero here means + * XXX: allocate a major number automatically. + * XXX: kern_conf.c knows what to do when it sees 256. + */ static struct cdevsw cn_cdevsw = { .d_open = cnopen, .d_close = cnclose, @@ -81,11 +86,6 @@ static struct cdevsw cn_cdevsw = { .d_poll = cnpoll, .d_name = "console", .d_maj = 256, - /* - * XXX: We really want major #0, but zero here means - * XXX: allocate a major number automatically. - * XXX: kern_conf.c knows what to do when it sees 256. - */ .d_flags = D_TTY, .d_kqfilter = cnkqfilter, }; |