diff options
author | Joe Perches <joe@perches.com> | 2010-03-18 21:29:38 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-03-23 16:50:28 -0400 |
commit | 56b632e8cc7a13cece861d890deb2843116f9372 (patch) | |
tree | 5dfc2e252f852b40b80feab6d4b164e867ee5b7d | |
parent | 270020e85ec88a832d663fff4489523169641c2b (diff) |
drivers/net: Remove local #define IW_IOCTL, use IW_HANDLER
Use #define IW_HANDLER from wireless.h instead
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/ps3_gelic_wireless.c | 35 | ||||
-rw-r--r-- | drivers/net/wireless/ipw2x00/ipw2200.c | 83 |
2 files changed, 58 insertions, 60 deletions
diff --git a/drivers/net/ps3_gelic_wireless.c b/drivers/net/ps3_gelic_wireless.c index 2663b2fdc0bb..f5fc0f78fc21 100644 --- a/drivers/net/ps3_gelic_wireless.c +++ b/drivers/net/ps3_gelic_wireless.c | |||
@@ -2279,26 +2279,25 @@ void gelic_wl_interrupt(struct net_device *netdev, u64 status) | |||
2279 | /* | 2279 | /* |
2280 | * driver helpers | 2280 | * driver helpers |
2281 | */ | 2281 | */ |
2282 | #define IW_IOCTL(n) [(n) - SIOCSIWCOMMIT] | ||
2283 | static const iw_handler gelic_wl_wext_handler[] = | 2282 | static const iw_handler gelic_wl_wext_handler[] = |
2284 | { | 2283 | { |
2285 | IW_IOCTL(SIOCGIWNAME) = gelic_wl_get_name, | 2284 | IW_HANDLER(SIOCGIWNAME, gelic_wl_get_name), |
2286 | IW_IOCTL(SIOCGIWRANGE) = gelic_wl_get_range, | 2285 | IW_HANDLER(SIOCGIWRANGE, gelic_wl_get_range), |
2287 | IW_IOCTL(SIOCSIWSCAN) = gelic_wl_set_scan, | 2286 | IW_HANDLER(SIOCSIWSCAN, gelic_wl_set_scan), |
2288 | IW_IOCTL(SIOCGIWSCAN) = gelic_wl_get_scan, | 2287 | IW_HANDLER(SIOCGIWSCAN, gelic_wl_get_scan), |
2289 | IW_IOCTL(SIOCSIWAUTH) = gelic_wl_set_auth, | 2288 | IW_HANDLER(SIOCSIWAUTH, gelic_wl_set_auth), |
2290 | IW_IOCTL(SIOCGIWAUTH) = gelic_wl_get_auth, | 2289 | IW_HANDLER(SIOCGIWAUTH, gelic_wl_get_auth), |
2291 | IW_IOCTL(SIOCSIWESSID) = gelic_wl_set_essid, | 2290 | IW_HANDLER(SIOCSIWESSID, gelic_wl_set_essid), |
2292 | IW_IOCTL(SIOCGIWESSID) = gelic_wl_get_essid, | 2291 | IW_HANDLER(SIOCGIWESSID, gelic_wl_get_essid), |
2293 | IW_IOCTL(SIOCSIWENCODE) = gelic_wl_set_encode, | 2292 | IW_HANDLER(SIOCSIWENCODE, gelic_wl_set_encode), |
2294 | IW_IOCTL(SIOCGIWENCODE) = gelic_wl_get_encode, | 2293 | IW_HANDLER(SIOCGIWENCODE, gelic_wl_get_encode), |
2295 | IW_IOCTL(SIOCSIWAP) = gelic_wl_set_ap, | 2294 | IW_HANDLER(SIOCSIWAP, gelic_wl_set_ap), |
2296 | IW_IOCTL(SIOCGIWAP) = gelic_wl_get_ap, | 2295 | IW_HANDLER(SIOCGIWAP, gelic_wl_get_ap), |
2297 | IW_IOCTL(SIOCSIWENCODEEXT) = gelic_wl_set_encodeext, | 2296 | IW_HANDLER(SIOCSIWENCODEEXT, gelic_wl_set_encodeext), |
2298 | IW_IOCTL(SIOCGIWENCODEEXT) = gelic_wl_get_encodeext, | 2297 | IW_HANDLER(SIOCGIWENCODEEXT, gelic_wl_get_encodeext), |
2299 | IW_IOCTL(SIOCSIWMODE) = gelic_wl_set_mode, | 2298 | IW_HANDLER(SIOCSIWMODE, gelic_wl_set_mode), |
2300 | IW_IOCTL(SIOCGIWMODE) = gelic_wl_get_mode, | 2299 | IW_HANDLER(SIOCGIWMODE, gelic_wl_get_mode), |
2301 | IW_IOCTL(SIOCGIWNICKN) = gelic_wl_get_nick, | 2300 | IW_HANDLER(SIOCGIWNICKN, gelic_wl_get_nick), |
2302 | }; | 2301 | }; |
2303 | 2302 | ||
2304 | static const struct iw_handler_def gelic_wl_wext_handler_def = { | 2303 | static const struct iw_handler_def gelic_wl_wext_handler_def = { |
diff --git a/drivers/net/wireless/ipw2x00/ipw2200.c b/drivers/net/wireless/ipw2x00/ipw2200.c index d6edc2440128..fcdbe8b00551 100644 --- a/drivers/net/wireless/ipw2x00/ipw2200.c +++ b/drivers/net/wireless/ipw2x00/ipw2200.c | |||
@@ -9980,49 +9980,48 @@ static int ipw_wx_sw_reset(struct net_device *dev, | |||
9980 | } | 9980 | } |
9981 | 9981 | ||
9982 | /* Rebase the WE IOCTLs to zero for the handler array */ | 9982 | /* Rebase the WE IOCTLs to zero for the handler array */ |
9983 | #define IW_IOCTL(x) [(x)-SIOCSIWCOMMIT] | ||
9984 | static iw_handler ipw_wx_handlers[] = { | 9983 | static iw_handler ipw_wx_handlers[] = { |
9985 | IW_IOCTL(SIOCGIWNAME) = (iw_handler) cfg80211_wext_giwname, | 9984 | IW_HANDLER(SIOCGIWNAME, (iw_handler)cfg80211_wext_giwname), |
9986 | IW_IOCTL(SIOCSIWFREQ) = ipw_wx_set_freq, | 9985 | IW_HANDLER(SIOCSIWFREQ, ipw_wx_set_freq), |
9987 | IW_IOCTL(SIOCGIWFREQ) = ipw_wx_get_freq, | 9986 | IW_HANDLER(SIOCGIWFREQ, ipw_wx_get_freq), |
9988 | IW_IOCTL(SIOCSIWMODE) = ipw_wx_set_mode, | 9987 | IW_HANDLER(SIOCSIWMODE, ipw_wx_set_mode), |
9989 | IW_IOCTL(SIOCGIWMODE) = ipw_wx_get_mode, | 9988 | IW_HANDLER(SIOCGIWMODE, ipw_wx_get_mode), |
9990 | IW_IOCTL(SIOCSIWSENS) = ipw_wx_set_sens, | 9989 | IW_HANDLER(SIOCSIWSENS, ipw_wx_set_sens), |
9991 | IW_IOCTL(SIOCGIWSENS) = ipw_wx_get_sens, | 9990 | IW_HANDLER(SIOCGIWSENS, ipw_wx_get_sens), |
9992 | IW_IOCTL(SIOCGIWRANGE) = ipw_wx_get_range, | 9991 | IW_HANDLER(SIOCGIWRANGE, ipw_wx_get_range), |
9993 | IW_IOCTL(SIOCSIWAP) = ipw_wx_set_wap, | 9992 | IW_HANDLER(SIOCSIWAP, ipw_wx_set_wap), |
9994 | IW_IOCTL(SIOCGIWAP) = ipw_wx_get_wap, | 9993 | IW_HANDLER(SIOCGIWAP, ipw_wx_get_wap), |
9995 | IW_IOCTL(SIOCSIWSCAN) = ipw_wx_set_scan, | 9994 | IW_HANDLER(SIOCSIWSCAN, ipw_wx_set_scan), |
9996 | IW_IOCTL(SIOCGIWSCAN) = ipw_wx_get_scan, | 9995 | IW_HANDLER(SIOCGIWSCAN, ipw_wx_get_scan), |
9997 | IW_IOCTL(SIOCSIWESSID) = ipw_wx_set_essid, | 9996 | IW_HANDLER(SIOCSIWESSID, ipw_wx_set_essid), |
9998 | IW_IOCTL(SIOCGIWESSID) = ipw_wx_get_essid, | 9997 | IW_HANDLER(SIOCGIWESSID, ipw_wx_get_essid), |
9999 | IW_IOCTL(SIOCSIWNICKN) = ipw_wx_set_nick, | 9998 | IW_HANDLER(SIOCSIWNICKN, ipw_wx_set_nick), |
10000 | IW_IOCTL(SIOCGIWNICKN) = ipw_wx_get_nick, | 9999 | IW_HANDLER(SIOCGIWNICKN, ipw_wx_get_nick), |
10001 | IW_IOCTL(SIOCSIWRATE) = ipw_wx_set_rate, | 10000 | IW_HANDLER(SIOCSIWRATE, ipw_wx_set_rate), |
10002 | IW_IOCTL(SIOCGIWRATE) = ipw_wx_get_rate, | 10001 | IW_HANDLER(SIOCGIWRATE, ipw_wx_get_rate), |
10003 | IW_IOCTL(SIOCSIWRTS) = ipw_wx_set_rts, | 10002 | IW_HANDLER(SIOCSIWRTS, ipw_wx_set_rts), |
10004 | IW_IOCTL(SIOCGIWRTS) = ipw_wx_get_rts, | 10003 | IW_HANDLER(SIOCGIWRTS, ipw_wx_get_rts), |
10005 | IW_IOCTL(SIOCSIWFRAG) = ipw_wx_set_frag, | 10004 | IW_HANDLER(SIOCSIWFRAG, ipw_wx_set_frag), |
10006 | IW_IOCTL(SIOCGIWFRAG) = ipw_wx_get_frag, | 10005 | IW_HANDLER(SIOCGIWFRAG, ipw_wx_get_frag), |
10007 | IW_IOCTL(SIOCSIWTXPOW) = ipw_wx_set_txpow, | 10006 | IW_HANDLER(SIOCSIWTXPOW, ipw_wx_set_txpow), |
10008 | IW_IOCTL(SIOCGIWTXPOW) = ipw_wx_get_txpow, | 10007 | IW_HANDLER(SIOCGIWTXPOW, ipw_wx_get_txpow), |
10009 | IW_IOCTL(SIOCSIWRETRY) = ipw_wx_set_retry, | 10008 | IW_HANDLER(SIOCSIWRETRY, ipw_wx_set_retry), |
10010 | IW_IOCTL(SIOCGIWRETRY) = ipw_wx_get_retry, | 10009 | IW_HANDLER(SIOCGIWRETRY, ipw_wx_get_retry), |
10011 | IW_IOCTL(SIOCSIWENCODE) = ipw_wx_set_encode, | 10010 | IW_HANDLER(SIOCSIWENCODE, ipw_wx_set_encode), |
10012 | IW_IOCTL(SIOCGIWENCODE) = ipw_wx_get_encode, | 10011 | IW_HANDLER(SIOCGIWENCODE, ipw_wx_get_encode), |
10013 | IW_IOCTL(SIOCSIWPOWER) = ipw_wx_set_power, | 10012 | IW_HANDLER(SIOCSIWPOWER, ipw_wx_set_power), |
10014 | IW_IOCTL(SIOCGIWPOWER) = ipw_wx_get_power, | 10013 | IW_HANDLER(SIOCGIWPOWER, ipw_wx_get_power), |
10015 | IW_IOCTL(SIOCSIWSPY) = iw_handler_set_spy, | 10014 | IW_HANDLER(SIOCSIWSPY, iw_handler_set_spy), |
10016 | IW_IOCTL(SIOCGIWSPY) = iw_handler_get_spy, | 10015 | IW_HANDLER(SIOCGIWSPY, iw_handler_get_spy), |
10017 | IW_IOCTL(SIOCSIWTHRSPY) = iw_handler_set_thrspy, | 10016 | IW_HANDLER(SIOCSIWTHRSPY, iw_handler_set_thrspy), |
10018 | IW_IOCTL(SIOCGIWTHRSPY) = iw_handler_get_thrspy, | 10017 | IW_HANDLER(SIOCGIWTHRSPY, iw_handler_get_thrspy), |
10019 | IW_IOCTL(SIOCSIWGENIE) = ipw_wx_set_genie, | 10018 | IW_HANDLER(SIOCSIWGENIE, ipw_wx_set_genie), |
10020 | IW_IOCTL(SIOCGIWGENIE) = ipw_wx_get_genie, | 10019 | IW_HANDLER(SIOCGIWGENIE, ipw_wx_get_genie), |
10021 | IW_IOCTL(SIOCSIWMLME) = ipw_wx_set_mlme, | 10020 | IW_HANDLER(SIOCSIWMLME, ipw_wx_set_mlme), |
10022 | IW_IOCTL(SIOCSIWAUTH) = ipw_wx_set_auth, | 10021 | IW_HANDLER(SIOCSIWAUTH, ipw_wx_set_auth), |
10023 | IW_IOCTL(SIOCGIWAUTH) = ipw_wx_get_auth, | 10022 | IW_HANDLER(SIOCGIWAUTH, ipw_wx_get_auth), |
10024 | IW_IOCTL(SIOCSIWENCODEEXT) = ipw_wx_set_encodeext, | 10023 | IW_HANDLER(SIOCSIWENCODEEXT, ipw_wx_set_encodeext), |
10025 | IW_IOCTL(SIOCGIWENCODEEXT) = ipw_wx_get_encodeext, | 10024 | IW_HANDLER(SIOCGIWENCODEEXT, ipw_wx_get_encodeext), |
10026 | }; | 10025 | }; |
10027 | 10026 | ||
10028 | enum { | 10027 | enum { |