summaryrefslogtreecommitdiff
path: root/sys/dev/ic/acxreg.h
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2006-12-08 09:17:35 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2006-12-08 09:17:35 +0000
commit9924d2811cfd65d87bbd6ed98b2cdcde59f96d5a (patch)
tree8d2e9dbefdcc22adedf3df7c44427013b0a33a29 /sys/dev/ic/acxreg.h
parent6ec1e59ad26eb6d85f7a1b86387f12d7ac6e4315 (diff)
First round of evil macro removal. _acx_set_##name##_tmplt bites the dust.
OK mglocker@
Diffstat (limited to 'sys/dev/ic/acxreg.h')
-rw-r--r--sys/dev/ic/acxreg.h19
1 files changed, 2 insertions, 17 deletions
diff --git a/sys/dev/ic/acxreg.h b/sys/dev/ic/acxreg.h
index 76b454ace7c..e1523a47933 100644
--- a/sys/dev/ic/acxreg.h
+++ b/sys/dev/ic/acxreg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: acxreg.h,v 1.6 2006/08/15 15:43:34 deraadt Exp $ */
+/* $OpenBSD: acxreg.h,v 1.7 2006/12/08 09:17:34 claudio Exp $ */
/*
* Copyright (c) 2006 Jonathan Gray <jsg@openbsd.org>
@@ -439,17 +439,6 @@ acx_init_##name##_tmplt(struct acx_softc *_sc) \
} \
struct __hack
-#define ACX_SET_TMPLT_FUNC(name) \
-static __inline int \
-_acx_set_##name##_tmplt(struct acx_softc *_sc, \
- struct acx_tmplt_##name *_tmplt, \
- uint16_t _tmplt_len) \
-{ \
- return acx_set_tmplt(_sc, ACXCMD_TMPLT_##name, \
- _tmplt, _tmplt_len); \
-} \
-struct __hack
-
#define _ACX_CONF_FUNC(sg, name, chip) \
static __inline int \
acx##chip##_##sg##_##name##_conf(struct acx_softc *_sc, \
@@ -475,16 +464,12 @@ struct __hack
#define ACXCMD_TMPLT_probe_resp ACXCMD_TMPLT_PROBE_RESP
#define ACXCMD_TMPLT_null_data ACXCMD_TMPLT_NULL_DATA
#define ACXCMD_TMPLT_probe_req ACXCMD_TMPLT_PROBE_REQ
+
ACX_INIT_TMPLT_FUNC(tim);
ACX_INIT_TMPLT_FUNC(null_data);
ACX_INIT_TMPLT_FUNC(beacon);
ACX_INIT_TMPLT_FUNC(probe_req);
ACX_INIT_TMPLT_FUNC(probe_resp);
-ACX_SET_TMPLT_FUNC(tim);
-ACX_SET_TMPLT_FUNC(null_data);
-ACX_SET_TMPLT_FUNC(beacon);
-ACX_SET_TMPLT_FUNC(probe_req);
-ACX_SET_TMPLT_FUNC(probe_resp);
#define ACX_CONF_FUNC(sg, name) _ACX_CONF_FUNC(sg, name,)
#define ACX_CONF_wepopt ACX_CONF_WEPOPT