summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ray_cs.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2010-03-18 18:29:37 -0700
committerJohn W. Linville <linville@tuxdriver.com>2010-03-23 16:50:27 -0400
commit270020e85ec88a832d663fff4489523169641c2b (patch)
tree83f7e72af2f53ecc1f3397aa3ca8b91cb14aebdc /drivers/net/wireless/ray_cs.c
parent76326f1d4c98fe01daf363e3d07f84bafed1feec (diff)
downloadop-kernel-dev-270020e85ec88a832d663fff4489523169641c2b.zip
op-kernel-dev-270020e85ec88a832d663fff4489523169641c2b.tar.gz
drivers/net/wireless: Use IW_HANDLER macro
Convert direct uses of [ (foo - SIOCIWFIRST) , fn) Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ray_cs.c')
-rw-r--r--drivers/net/wireless/ray_cs.c40
1 files changed, 20 insertions, 20 deletions
diff --git a/drivers/net/wireless/ray_cs.c b/drivers/net/wireless/ray_cs.c
index 84c530a..a42ee01 100644
--- a/drivers/net/wireless/ray_cs.c
+++ b/drivers/net/wireless/ray_cs.c
@@ -1531,28 +1531,28 @@ static iw_stats *ray_get_wireless_stats(struct net_device *dev)
*/
static const iw_handler ray_handler[] = {
- [SIOCSIWCOMMIT - SIOCIWFIRST] = (iw_handler) ray_commit,
- [SIOCGIWNAME - SIOCIWFIRST] = (iw_handler) ray_get_name,
- [SIOCSIWFREQ - SIOCIWFIRST] = (iw_handler) ray_set_freq,
- [SIOCGIWFREQ - SIOCIWFIRST] = (iw_handler) ray_get_freq,
- [SIOCSIWMODE - SIOCIWFIRST] = (iw_handler) ray_set_mode,
- [SIOCGIWMODE - SIOCIWFIRST] = (iw_handler) ray_get_mode,
- [SIOCGIWRANGE - SIOCIWFIRST] = (iw_handler) ray_get_range,
+ IW_HANDLER(SIOCSIWCOMMIT, (iw_handler)ray_commit),
+ IW_HANDLER(SIOCGIWNAME, (iw_handler)ray_get_name),
+ IW_HANDLER(SIOCSIWFREQ, (iw_handler)ray_set_freq),
+ IW_HANDLER(SIOCGIWFREQ, (iw_handler)ray_get_freq),
+ IW_HANDLER(SIOCSIWMODE, (iw_handler)ray_set_mode),
+ IW_HANDLER(SIOCGIWMODE, (iw_handler)ray_get_mode),
+ IW_HANDLER(SIOCGIWRANGE, (iw_handler)ray_get_range),
#ifdef WIRELESS_SPY
- [SIOCSIWSPY - SIOCIWFIRST] = (iw_handler) iw_handler_set_spy,
- [SIOCGIWSPY - SIOCIWFIRST] = (iw_handler) iw_handler_get_spy,
- [SIOCSIWTHRSPY - SIOCIWFIRST] = (iw_handler) iw_handler_set_thrspy,
- [SIOCGIWTHRSPY - SIOCIWFIRST] = (iw_handler) iw_handler_get_thrspy,
+ IW_HANDLER(SIOCSIWSPY, iw_handler_set_spy),
+ IW_HANDLER(SIOCGIWSPY, iw_handler_get_spy),
+ IW_HANDLER(SIOCSIWTHRSPY, iw_handler_set_thrspy),
+ IW_HANDLER(SIOCGIWTHRSPY, iw_handler_get_thrspy),
#endif /* WIRELESS_SPY */
- [SIOCGIWAP - SIOCIWFIRST] = (iw_handler) ray_get_wap,
- [SIOCSIWESSID - SIOCIWFIRST] = (iw_handler) ray_set_essid,
- [SIOCGIWESSID - SIOCIWFIRST] = (iw_handler) ray_get_essid,
- [SIOCSIWRATE - SIOCIWFIRST] = (iw_handler) ray_set_rate,
- [SIOCGIWRATE - SIOCIWFIRST] = (iw_handler) ray_get_rate,
- [SIOCSIWRTS - SIOCIWFIRST] = (iw_handler) ray_set_rts,
- [SIOCGIWRTS - SIOCIWFIRST] = (iw_handler) ray_get_rts,
- [SIOCSIWFRAG - SIOCIWFIRST] = (iw_handler) ray_set_frag,
- [SIOCGIWFRAG - SIOCIWFIRST] = (iw_handler) ray_get_frag,
+ IW_HANDLER(SIOCGIWAP, (iw_handler)ray_get_wap),
+ IW_HANDLER(SIOCSIWESSID, (iw_handler)ray_set_essid),
+ IW_HANDLER(SIOCGIWESSID, (iw_handler)ray_get_essid),
+ IW_HANDLER(SIOCSIWRATE, (iw_handler)ray_set_rate),
+ IW_HANDLER(SIOCGIWRATE, (iw_handler)ray_get_rate),
+ IW_HANDLER(SIOCSIWRTS, (iw_handler)ray_set_rts),
+ IW_HANDLER(SIOCGIWRTS, (iw_handler)ray_get_rts),
+ IW_HANDLER(SIOCSIWFRAG, (iw_handler)ray_set_frag),
+ IW_HANDLER(SIOCGIWFRAG, (iw_handler)ray_get_frag),
};
#define SIOCSIPFRAMING SIOCIWFIRSTPRIV /* Set framing mode */
OpenPOWER on IntegriCloud