From 4e2f199e0c9ada1b226f685a848abb1420a1ff8f Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Sun, 30 May 1999 16:53:49 +0000 Subject: 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. --- sys/dev/speaker/spkr.c | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) (limited to 'sys/dev/speaker') diff --git a/sys/dev/speaker/spkr.c b/sys/dev/speaker/spkr.c index 460ef789a393a..759a9fcd9c38a 100644 --- a/sys/dev/speaker/spkr.c +++ b/sys/dev/speaker/spkr.c @@ -4,7 +4,7 @@ * v1.4 by Eric S. Raymond (esr@snark.thyrsus.com) Aug 1993 * modified for FreeBSD by Andrew A. Chernov * - * $Id: spkr.c,v 1.34 1998/06/07 17:11:00 dfr Exp $ + * $Id: spkr.c,v 1.35 1998/08/24 02:28:16 bde Exp $ */ #include "speaker.h" @@ -35,10 +35,27 @@ static d_write_t spkrwrite; static d_ioctl_t spkrioctl; #define CDEV_MAJOR 26 -static struct cdevsw spkr_cdevsw = - { spkropen, spkrclose, noread, spkrwrite, /*26*/ - spkrioctl, nostop, nullreset, nodevtotty,/* spkr */ - seltrue, nommap, NULL, "spkr", NULL, -1 }; +static struct cdevsw spkr_cdevsw = { + /* open */ spkropen, + /* close */ spkrclose, + /* read */ noread, + /* write */ spkrwrite, + /* ioctl */ spkrioctl, + /* stop */ nostop, + /* reset */ noreset, + /* devtotty */ nodevtotty, + /* poll */ nopoll, + /* mmap */ nommap, + /* strategy */ nostrategy, + /* name */ "spkr", + /* parms */ noparms, + /* maj */ CDEV_MAJOR, + /* dump */ nodump, + /* psize */ nopsize, + /* flags */ 0, + /* maxio */ 0, + /* bmaj */ -1 +}; /**************** MACHINE DEPENDENT PART STARTS HERE ************************* * -- cgit v1.3