summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/udl.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/udl.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/udl.c')
-rw-r--r--sys/dev/usb/udl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/udl.c b/sys/dev/usb/udl.c
index 7b0462eea22..3b069afcbd6 100644
--- a/sys/dev/usb/udl.c
+++ b/sys/dev/usb/udl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: udl.c,v 1.54 2009/10/11 12:38:23 mglocker Exp $ */
+/* $OpenBSD: udl.c,v 1.55 2009/10/13 19:33:17 pirofti Exp $ */
/*
* Copyright (c) 2009 Marcus Glocker <mglocker@openbsd.org>
@@ -75,7 +75,7 @@ int udl_match(struct device *, void *, void *);
void udl_attach(struct device *, struct device *, void *);
void udl_attach_hook(void *);
int udl_detach(struct device *, int);
-int udl_activate(struct device *, enum devact);
+int udl_activate(struct device *, int);
int udl_ioctl(void *, u_long, caddr_t, int, struct proc *);
paddr_t udl_mmap(void *, off_t, int);
@@ -480,7 +480,7 @@ udl_detach(struct device *self, int flags)
}
int
-udl_activate(struct device *self, enum devact act)
+udl_activate(struct device *self, int act)
{
switch (act) {
case DVACT_ACTIVATE: