summaryrefslogtreecommitdiff
path: root/sys/dev/gpio
diff options
context:
space:
mode:
authorPaul Irofti <pirofti@cvs.openbsd.org>2009-10-13 19:33:20 +0000
committerPaul Irofti <pirofti@cvs.openbsd.org>2009-10-13 19:33:20 +0000
commit6682179a1c327ebfd5a91e7dc39282434a805c2f (patch)
tree4d4643ee1beb2ad41f471df273cdcf08291d535b /sys/dev/gpio
parent8120c6ba90a94a5745094b6f232932d0695cae1c (diff)
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/gpio')
-rw-r--r--sys/dev/gpio/gpiodcf.c6
-rw-r--r--sys/dev/gpio/gpioow.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/gpio/gpiodcf.c b/sys/dev/gpio/gpiodcf.c
index af8f28c08f9..d8eeec8ac65 100644
--- a/sys/dev/gpio/gpiodcf.c
+++ b/sys/dev/gpio/gpiodcf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gpiodcf.c,v 1.2 2009/04/26 02:20:58 cnst Exp $ */
+/* $OpenBSD: gpiodcf.c,v 1.3 2009/10/13 19:33:16 pirofti Exp $ */
/*
* Copyright (c) 2008 Marc Balmer <mbalmer@openbsd.org>
@@ -118,7 +118,7 @@ void gpiodcf_invalidate(void *);
int gpiodcf_match(struct device *, void *, void *);
void gpiodcf_attach(struct device *, struct device *, void *);
int gpiodcf_detach(struct device *, int);
-int gpiodcf_activate(struct device *, enum devact);
+int gpiodcf_activate(struct device *, int);
int gpiodcf_signal(struct gpiodcf_softc *);
@@ -593,7 +593,7 @@ gpiodcf_ct_probe(void *xsc)
}
int
-gpiodcf_activate(struct device *self, enum devact act)
+gpiodcf_activate(struct device *self, int act)
{
struct gpiodcf_softc *sc = (struct gpiodcf_softc *)self;
diff --git a/sys/dev/gpio/gpioow.c b/sys/dev/gpio/gpioow.c
index 51536de91c5..ff49c06e832 100644
--- a/sys/dev/gpio/gpioow.c
+++ b/sys/dev/gpio/gpioow.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gpioow.c,v 1.3 2008/11/24 12:12:12 mbalmer Exp $ */
+/* $OpenBSD: gpioow.c,v 1.4 2009/10/13 19:33:16 pirofti Exp $ */
/*
* Copyright (c) 2006 Alexander Yurchenko <grange@openbsd.org>
@@ -49,7 +49,7 @@ struct gpioow_softc {
int gpioow_match(struct device *, void *, void *);
void gpioow_attach(struct device *, struct device *, void *);
int gpioow_detach(struct device *, int);
-int gpioow_activate(struct device *, enum devact);
+int gpioow_activate(struct device *, int);
int gpioow_ow_reset(void *);
int gpioow_ow_bit(void *, int);
@@ -170,7 +170,7 @@ gpioow_detach(struct device *self, int flags)
}
int
-gpioow_activate(struct device *self, enum devact act)
+gpioow_activate(struct device *self, int act)
{
struct gpioow_softc *sc = (struct gpioow_softc *)self;
int rv = 0;