summaryrefslogtreecommitdiffstats
path: root/sys/dev/mse
diff options
context:
space:
mode:
authorscrappy <scrappy@FreeBSD.org>1996-03-28 14:29:52 +0000
committerscrappy <scrappy@FreeBSD.org>1996-03-28 14:29:52 +0000
commit415585985cb93ec4bd441c45c7bbd43c2529256d (patch)
treea799d7ab93b91102069e46ed96392e309b7b469f /sys/dev/mse
parentf55298f39fa39052b4a4bb6f1f3a18aa12d6b771 (diff)
downloadFreeBSD-src-415585985cb93ec4bd441c45c7bbd43c2529256d.zip
FreeBSD-src-415585985cb93ec4bd441c45c7bbd43c2529256d.tar.gz
Switched from using devfs_add_sw() to using devfs_add_swf()
Reviewed by: julian@freebsd.org
Diffstat (limited to 'sys/dev/mse')
-rw-r--r--sys/dev/mse/mse.c19
1 files changed, 7 insertions, 12 deletions
diff --git a/sys/dev/mse/mse.c b/sys/dev/mse/mse.c
index 01df850..efa3065 100644
--- a/sys/dev/mse/mse.c
+++ b/sys/dev/mse/mse.c
@@ -11,7 +11,7 @@
* this software for any purpose. It is provided "as is"
* without express or implied warranty.
*
- * $Id: mse.c,v 1.23 1995/12/15 00:29:30 bde Exp $
+ * $Id: mse.c,v 1.24 1995/12/15 00:54:25 bde Exp $
*/
/*
* Driver for the Logitech and ATI Inport Bus mice for use with 386bsd and
@@ -257,23 +257,18 @@ int
mseattach(idp)
struct isa_device *idp;
{
- char name[32];
int unit = idp->id_unit;
struct mse_softc *sc = &mse_sc[unit];
sc->sc_port = idp->id_iobase;
kdc_mse[unit].kdc_state = DC_IDLE;
#ifdef DEVFS
- sprintf(name,"mse%d", unit);
- /* path name devsw minor */
- sc->devfs_token = devfs_add_devsw( "/", name, &mse_cdevsw, unit << 1,
- /*type uid gid perm*/
- DV_CHR, 0, 0, 0600);
- sprintf(name,"nmse%d", unit);
- /* path name devsw minor */
- sc->n_devfs_token = devfs_add_devsw("/", name, &mse_cdevsw, (unit<<1)+1,
- /*type uid gid perm*/
- DV_CHR, 0, 0, 0600);
+ sc->devfs_token =
+ devfs_add_devswf(&mse_cdevsw, unit << 1, DV_CHR, 0, 0,
+ 0600, "mse%d", unit);
+ sc->n_devfs_token =
+ devfs_add_devswf(&mse_cdevsw, (unit<<1)+1, DV_CHR,0, 0,
+ 0600, "nmse%d", unit);
#endif
return (1);
}
OpenPOWER on IntegriCloud