Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7a700faf authored by Al Viro's avatar Al Viro Committed by Jeff Garzik
Browse files

[PATCH] C99 initializers in ray_cs.c



Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarJeff Garzik <jgarzik@pobox.com>
parent 387d890d
Loading
Loading
Loading
Loading
+23 −23
Original line number Diff line number Diff line
@@ -1649,28 +1649,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,
	[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,
#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,
 	[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,
#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,
	[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,
};

#define SIOCSIPFRAMING	SIOCIWFIRSTPRIV		/* Set framing mode */
@@ -1678,9 +1678,9 @@ static const iw_handler ray_handler[] = {
#define SIOCGIPCOUNTRY	SIOCIWFIRSTPRIV + 3	/* Get country code */

static const iw_handler	ray_private_handler[] = {
	[0] (iw_handler) ray_set_framing,
	[1] (iw_handler) ray_get_framing,
	[3] (iw_handler) ray_get_country,
	[0] = (iw_handler) ray_set_framing,
	[1] = (iw_handler) ray_get_framing,
	[3] = (iw_handler) ray_get_country,
};

static const struct iw_priv_args	ray_private_args[] = {