mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
net: replace uses of __constant_{endian}
Base versions handle constant folding now. Signed-off-by: Harvey Harrison <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
ee437770c4
commit
09640e6365
61 changed files with 111 additions and 112 deletions
|
|
@ -394,7 +394,7 @@ static int mv88e6123_61_65_get_sset_count(struct dsa_switch *ds)
|
|||
}
|
||||
|
||||
static struct dsa_switch_driver mv88e6123_61_65_switch_driver = {
|
||||
.tag_protocol = __constant_htons(ETH_P_EDSA),
|
||||
.tag_protocol = cpu_to_be16(ETH_P_EDSA),
|
||||
.priv_size = sizeof(struct mv88e6xxx_priv_state),
|
||||
.probe = mv88e6123_61_65_probe,
|
||||
.setup = mv88e6123_61_65_setup,
|
||||
|
|
|
|||
|
|
@ -353,7 +353,7 @@ static int mv88e6131_get_sset_count(struct dsa_switch *ds)
|
|||
}
|
||||
|
||||
static struct dsa_switch_driver mv88e6131_switch_driver = {
|
||||
.tag_protocol = __constant_htons(ETH_P_DSA),
|
||||
.tag_protocol = cpu_to_be16(ETH_P_DSA),
|
||||
.priv_size = sizeof(struct mv88e6xxx_priv_state),
|
||||
.probe = mv88e6131_probe,
|
||||
.setup = mv88e6131_setup,
|
||||
|
|
|
|||
|
|
@ -176,7 +176,7 @@ out:
|
|||
}
|
||||
|
||||
static struct packet_type dsa_packet_type = {
|
||||
.type = __constant_htons(ETH_P_DSA),
|
||||
.type = cpu_to_be16(ETH_P_DSA),
|
||||
.func = dsa_rcv,
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -195,7 +195,7 @@ out:
|
|||
}
|
||||
|
||||
static struct packet_type edsa_packet_type = {
|
||||
.type = __constant_htons(ETH_P_EDSA),
|
||||
.type = cpu_to_be16(ETH_P_EDSA),
|
||||
.func = edsa_rcv,
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -112,7 +112,7 @@ out:
|
|||
}
|
||||
|
||||
static struct packet_type trailer_packet_type = {
|
||||
.type = __constant_htons(ETH_P_TRAILER),
|
||||
.type = cpu_to_be16(ETH_P_TRAILER),
|
||||
.func = trailer_rcv,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue