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 /drivers/net/ps3_gelic_wireless.c | |
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>
Diffstat (limited to 'drivers/net/ps3_gelic_wireless.c')
-rw-r--r-- | drivers/net/ps3_gelic_wireless.c | 35 |
1 files changed, 17 insertions, 18 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 = { |