From 9924d2811cfd65d87bbd6ed98b2cdcde59f96d5a Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Fri, 8 Dec 2006 09:17:35 +0000 Subject: First round of evil macro removal. _acx_set_##name##_tmplt bites the dust. OK mglocker@ --- sys/dev/ic/acxreg.h | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) (limited to 'sys/dev/ic/acxreg.h') 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 @@ -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 -- cgit v1.2.3