Commit 7107a09c authored by Hideaki Yoshifuji's avatar Hideaki Yoshifuji

[netdrvr] C99 initializers for arcnet

parent 5443b474
......@@ -45,11 +45,11 @@ static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length,
struct ArcProto rawmode_proto =
{
'r',
XMTU,
rx,
build_header,
prepare_tx
.suffix = 'r',
.mtu = XMTU,
.rx = rx,
.build_header = build_header,
.prepare_tx = prepare_tx,
};
......
......@@ -73,11 +73,11 @@ struct ArcProto *arc_proto_map[256], *arc_proto_default, *arc_bcast_proto;
struct ArcProto arc_proto_null =
{
'?',
XMTU,
null_rx,
null_build_header,
null_prepare_tx
.suffix = '?',
.mtu = XMTU,
.rx = null_rx,
.build_header = null_build_header,
.prepare_tx = null_prepare_tx,
};
static spinlock_t arcnet_lock = SPIN_LOCK_UNLOCKED;
......
......@@ -45,11 +45,11 @@ static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length,
struct ArcProto rfc1051_proto =
{
's',
XMTU - RFC1051_HDR_SIZE,
rx,
build_header,
prepare_tx
.suffix = 's',
.mtu = XMTU - RFC1051_HDR_SIZE,
.rx = rx,
.build_header = build_header,
.prepare_tx = prepare_tx,
};
......
......@@ -44,12 +44,12 @@ static int continue_tx(struct net_device *dev, int bufnum);
struct ArcProto rfc1201_proto =
{
'a',
1500, /* could be more, but some receivers can't handle it... */
rx,
build_header,
prepare_tx,
continue_tx
.suffix = 'a',
.mtu = 1500, /* could be more, but some receivers can't handle it... */
.rx = rx,
.build_header = build_header,
.prepare_tx = prepare_tx,
.continue_tx = continue_tx,
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment