diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-05-30 16:53:49 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-05-30 16:53:49 +0000 |
commit | 4e2f199e0c9ada1b226f685a848abb1420a1ff8f (patch) | |
tree | c7dba053fd70eed731104c273f0605d351ea65cd /sys/isa/joy.c | |
parent | 7a1c7bc99f36d929470a570884dcdacb005fd08f (diff) |
This commit should be a extensive NO-OP:
Reformat and initialize correctly all "struct cdevsw".
Initialize the d_maj and d_bmaj fields.
The d_reset field was not removed, although it is never used.
I used a program to do most of this, so all the files now use the
same consistent format. Please keep it that way.
Vinum and i4b not modified, patches emailed to respective authors.
Notes
Notes:
svn path=/head/; revision=47625
Diffstat (limited to 'sys/isa/joy.c')
-rw-r--r-- | sys/isa/joy.c | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/sys/isa/joy.c b/sys/isa/joy.c index 5d4a7c233060..6847f43d4122 100644 --- a/sys/isa/joy.c +++ b/sys/isa/joy.c @@ -92,10 +92,27 @@ static d_close_t joyclose; static d_read_t joyread; static d_ioctl_t joyioctl; -static struct cdevsw joy_cdevsw = - { joyopen, joyclose, joyread, nowrite, /*51*/ - joyioctl, nostop, nullreset, nodevtotty,/*joystick */ - seltrue, nommap, NULL, "joy", NULL, -1 }; +static struct cdevsw joy_cdevsw = { + /* open */ joyopen, + /* close */ joyclose, + /* read */ joyread, + /* write */ nowrite, + /* ioctl */ joyioctl, + /* stop */ nostop, + /* reset */ noreset, + /* devtotty */ nodevtotty, + /* poll */ nopoll, + /* mmap */ nommap, + /* strategy */ nostrategy, + /* name */ "joy", + /* parms */ noparms, + /* maj */ CDEV_MAJOR, + /* dump */ nodump, + /* psize */ nopsize, + /* flags */ 0, + /* maxio */ 0, + /* bmaj */ -1 +}; static int get_tick __P((void)); |