summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/uhid.c
diff options
context:
space:
mode:
authorpirofti <pirofti@openbsd.org>2009-10-13 19:33:16 +0000
committerpirofti <pirofti@openbsd.org>2009-10-13 19:33:16 +0000
commite78728c7e57c4ce0e301c2a9c78eee6f8c0a8c00 (patch)
tree73f6f3f25e0bb936b93bd2c0bc42e990ecd3aea6 /sys/dev/usb/uhid.c
parentsync (diff)
downloadwireguard-openbsd-e78728c7e57c4ce0e301c2a9c78eee6f8c0a8c00.tar.xz
wireguard-openbsd-e78728c7e57c4ce0e301c2a9c78eee6f8c0a8c00.zip
Get rid of devact enum, substitute it with an int and coresponding defines.
This is needed for the addition of further suspend/resume actions. Okay deraadt@, marco@.
Diffstat (limited to 'sys/dev/usb/uhid.c')
-rw-r--r--sys/dev/usb/uhid.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/uhid.c b/sys/dev/usb/uhid.c
index 57716e16a6f..f9af66a7437 100644
--- a/sys/dev/usb/uhid.c
+++ b/sys/dev/usb/uhid.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uhid.c,v 1.43 2009/07/19 08:16:06 blambert Exp $ */
+/* $OpenBSD: uhid.c,v 1.44 2009/10/13 19:33:19 pirofti Exp $ */
/* $NetBSD: uhid.c,v 1.57 2003/03/11 16:44:00 augustss Exp $ */
/*
@@ -104,7 +104,7 @@ int uhid_do_ioctl(struct uhid_softc*, u_long, caddr_t, int,
int uhid_match(struct device *, void *, void *);
void uhid_attach(struct device *, struct device *, void *);
int uhid_detach(struct device *, int);
-int uhid_activate(struct device *, enum devact);
+int uhid_activate(struct device *, int);
struct cfdriver uhid_cd = {
NULL, "uhid", DV_DULL
@@ -155,7 +155,7 @@ uhid_attach(struct device *parent, struct device *self, void *aux)
}
int
-uhid_activate(struct device *self, enum devact act)
+uhid_activate(struct device *self, int act)
{
struct uhid_softc *sc = (struct uhid_softc *)self;