diff options
author | Simon Wunderlich <siwu@hrz.tu-chemnitz.de> | 2010-01-02 05:30:40 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-03-03 19:42:35 -0500 |
commit | 5ea84fa369baa3d36fa8a78e9af3dc71bbcbca51 (patch) | |
tree | ce8251e04ec16ef4c668e732af5ce784a07bd8fb /drivers | |
parent | b6c359767bc743a7b6830660daa8f7e5c4273ad8 (diff) |
Staging: batman-adv: consistent spelling of "neighbors"
we have written "neighbors", "neighbours" and bad spelled versions of this
word, this patch should make it consistent.
Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/batman-adv/originator.c | 12 | ||||
-rw-r--r-- | drivers/staging/batman-adv/packet.h | 2 | ||||
-rw-r--r-- | drivers/staging/batman-adv/proc.c | 2 | ||||
-rw-r--r-- | drivers/staging/batman-adv/routing.c | 10 | ||||
-rw-r--r-- | drivers/staging/batman-adv/types.h | 2 |
5 files changed, 14 insertions, 14 deletions
diff --git a/drivers/staging/batman-adv/originator.c b/drivers/staging/batman-adv/originator.c index b1049826b51..6a1fdf2b702 100644 --- a/drivers/staging/batman-adv/originator.c +++ b/drivers/staging/batman-adv/originator.c | |||
@@ -74,7 +74,7 @@ create_neighbor(struct orig_node *orig_node, struct orig_node *orig_neigh_node, | |||
74 | { | 74 | { |
75 | struct neigh_node *neigh_node; | 75 | struct neigh_node *neigh_node; |
76 | 76 | ||
77 | bat_dbg(DBG_BATMAN, "Creating new last-hop neighbour of originator\n"); | 77 | bat_dbg(DBG_BATMAN, "Creating new last-hop neighbor of originator\n"); |
78 | 78 | ||
79 | neigh_node = kmalloc(sizeof(struct neigh_node), GFP_ATOMIC); | 79 | neigh_node = kmalloc(sizeof(struct neigh_node), GFP_ATOMIC); |
80 | memset(neigh_node, 0, sizeof(struct neigh_node)); | 80 | memset(neigh_node, 0, sizeof(struct neigh_node)); |
@@ -94,7 +94,7 @@ void free_orig_node(void *data) | |||
94 | struct neigh_node *neigh_node; | 94 | struct neigh_node *neigh_node; |
95 | struct orig_node *orig_node = (struct orig_node *)data; | 95 | struct orig_node *orig_node = (struct orig_node *)data; |
96 | 96 | ||
97 | /* for all neighbours towards this originator ... */ | 97 | /* for all neighbors towards this originator ... */ |
98 | list_for_each_safe(list_pos, list_pos_tmp, &orig_node->neigh_list) { | 98 | list_for_each_safe(list_pos, list_pos_tmp, &orig_node->neigh_list) { |
99 | neigh_node = list_entry(list_pos, struct neigh_node, list); | 99 | neigh_node = list_entry(list_pos, struct neigh_node, list); |
100 | 100 | ||
@@ -159,7 +159,7 @@ struct orig_node *get_orig_node(uint8_t *addr) | |||
159 | return orig_node; | 159 | return orig_node; |
160 | } | 160 | } |
161 | 161 | ||
162 | static bool purge_orig_neigbours(struct orig_node *orig_node, | 162 | static bool purge_orig_neighbors(struct orig_node *orig_node, |
163 | struct neigh_node **best_neigh_node) | 163 | struct neigh_node **best_neigh_node) |
164 | { | 164 | { |
165 | struct list_head *list_pos, *list_pos_tmp; | 165 | struct list_head *list_pos, *list_pos_tmp; |
@@ -170,7 +170,7 @@ static bool purge_orig_neigbours(struct orig_node *orig_node, | |||
170 | *best_neigh_node = NULL; | 170 | *best_neigh_node = NULL; |
171 | 171 | ||
172 | 172 | ||
173 | /* for all neighbours towards this originator ... */ | 173 | /* for all neighbors towards this originator ... */ |
174 | list_for_each_safe(list_pos, list_pos_tmp, &orig_node->neigh_list) { | 174 | list_for_each_safe(list_pos, list_pos_tmp, &orig_node->neigh_list) { |
175 | neigh_node = list_entry(list_pos, struct neigh_node, list); | 175 | neigh_node = list_entry(list_pos, struct neigh_node, list); |
176 | 176 | ||
@@ -180,7 +180,7 @@ static bool purge_orig_neigbours(struct orig_node *orig_node, | |||
180 | 180 | ||
181 | addr_to_string(neigh_str, neigh_node->addr); | 181 | addr_to_string(neigh_str, neigh_node->addr); |
182 | addr_to_string(orig_str, orig_node->orig); | 182 | addr_to_string(orig_str, orig_node->orig); |
183 | bat_dbg(DBG_BATMAN, "Neighbour timeout: originator %s, neighbour: %s, last_valid %lu\n", orig_str, neigh_str, (neigh_node->last_valid / HZ)); | 183 | bat_dbg(DBG_BATMAN, "neighbor timeout: originator %s, neighbor: %s, last_valid %lu\n", orig_str, neigh_str, (neigh_node->last_valid / HZ)); |
184 | 184 | ||
185 | neigh_purged = true; | 185 | neigh_purged = true; |
186 | list_del(list_pos); | 186 | list_del(list_pos); |
@@ -211,7 +211,7 @@ static bool purge_orig_node(struct orig_node *orig_node) | |||
211 | orig_str, (orig_node->last_valid / HZ)); | 211 | orig_str, (orig_node->last_valid / HZ)); |
212 | return true; | 212 | return true; |
213 | } else { | 213 | } else { |
214 | if (purge_orig_neigbours(orig_node, &best_neigh_node)) | 214 | if (purge_orig_neighbors(orig_node, &best_neigh_node)) |
215 | update_routes(orig_node, best_neigh_node, | 215 | update_routes(orig_node, best_neigh_node, |
216 | orig_node->hna_buff, | 216 | orig_node->hna_buff, |
217 | orig_node->hna_buff_len); | 217 | orig_node->hna_buff_len); |
diff --git a/drivers/staging/batman-adv/packet.h b/drivers/staging/batman-adv/packet.h index 5627ca32601..ad006ce8b13 100644 --- a/drivers/staging/batman-adv/packet.h +++ b/drivers/staging/batman-adv/packet.h | |||
@@ -90,7 +90,7 @@ struct vis_packet { | |||
90 | uint8_t entries; /* number of entries behind this struct */ | 90 | uint8_t entries; /* number of entries behind this struct */ |
91 | uint8_t ttl; /* TTL */ | 91 | uint8_t ttl; /* TTL */ |
92 | uint8_t vis_orig[6]; /* originator that informs about its | 92 | uint8_t vis_orig[6]; /* originator that informs about its |
93 | * neighbours */ | 93 | * neighbors */ |
94 | uint8_t target_orig[6]; /* who should receive this packet */ | 94 | uint8_t target_orig[6]; /* who should receive this packet */ |
95 | uint8_t sender_orig[6]; /* who sent or rebroadcasted this packet */ | 95 | uint8_t sender_orig[6]; /* who sent or rebroadcasted this packet */ |
96 | } __attribute__((packed)); | 96 | } __attribute__((packed)); |
diff --git a/drivers/staging/batman-adv/proc.c b/drivers/staging/batman-adv/proc.c index 9f7136b3be3..71668cfbdbf 100644 --- a/drivers/staging/batman-adv/proc.c +++ b/drivers/staging/batman-adv/proc.c | |||
@@ -404,7 +404,7 @@ static void proc_vis_read_entry(struct seq_file *seq, | |||
404 | from, to, int_part, frac_part); | 404 | from, to, int_part, frac_part); |
405 | } else { | 405 | } else { |
406 | seq_printf(seq, | 406 | seq_printf(seq, |
407 | "%s\t{ router : \"%s\", neighbour : \"%s\", label : %d.%d }", | 407 | "%s\t{ router : \"%s\", neighbor : \"%s\", label : %d.%d }", |
408 | (first_line ? "" : ",\n"), from, to, int_part, frac_part); | 408 | (first_line ? "" : ",\n"), from, to, int_part, frac_part); |
409 | } | 409 | } |
410 | } | 410 | } |
diff --git a/drivers/staging/batman-adv/routing.c b/drivers/staging/batman-adv/routing.c index 68dea76b0ca..37c53822e9c 100644 --- a/drivers/staging/batman-adv/routing.c +++ b/drivers/staging/batman-adv/routing.c | |||
@@ -266,7 +266,7 @@ static void update_orig(struct orig_node *orig_node, struct ethhdr *ethhdr, | |||
266 | ethhdr->h_source, if_incoming); | 266 | ethhdr->h_source, if_incoming); |
267 | else | 267 | else |
268 | bat_dbg(DBG_BATMAN, | 268 | bat_dbg(DBG_BATMAN, |
269 | "Updating existing last-hop neighbour of originator\n"); | 269 | "Updating existing last-hop neighbor of originator\n"); |
270 | 270 | ||
271 | orig_node->flags = batman_packet->flags; | 271 | orig_node->flags = batman_packet->flags; |
272 | neigh_node->last_valid = jiffies; | 272 | neigh_node->last_valid = jiffies; |
@@ -444,7 +444,7 @@ void receive_bat_packet(struct ethhdr *ethhdr, | |||
444 | 444 | ||
445 | orig_neigh_node = get_orig_node(ethhdr->h_source); | 445 | orig_neigh_node = get_orig_node(ethhdr->h_source); |
446 | 446 | ||
447 | /* neighbour has to indicate direct link and it has to | 447 | /* neighbor has to indicate direct link and it has to |
448 | * come via the corresponding interface */ | 448 | * come via the corresponding interface */ |
449 | /* if received seqno equals last send seqno save new | 449 | /* if received seqno equals last send seqno save new |
450 | * seqno for bidirectional check */ | 450 | * seqno for bidirectional check */ |
@@ -459,7 +459,7 @@ void receive_bat_packet(struct ethhdr *ethhdr, | |||
459 | bit_packet_count(word); | 459 | bit_packet_count(word); |
460 | } | 460 | } |
461 | 461 | ||
462 | bat_dbg(DBG_BATMAN, "Drop packet: originator packet from myself (via neighbour) \n"); | 462 | bat_dbg(DBG_BATMAN, "Drop packet: originator packet from myself (via neighbor) \n"); |
463 | return; | 463 | return; |
464 | } | 464 | } |
465 | 465 | ||
@@ -520,14 +520,14 @@ void receive_bat_packet(struct ethhdr *ethhdr, | |||
520 | update_orig(orig_node, ethhdr, batman_packet, | 520 | update_orig(orig_node, ethhdr, batman_packet, |
521 | if_incoming, hna_buff, hna_buff_len, is_duplicate); | 521 | if_incoming, hna_buff, hna_buff_len, is_duplicate); |
522 | 522 | ||
523 | /* is single hop (direct) neighbour */ | 523 | /* is single hop (direct) neighbor */ |
524 | if (is_single_hop_neigh) { | 524 | if (is_single_hop_neigh) { |
525 | 525 | ||
526 | /* mark direct link on incoming interface */ | 526 | /* mark direct link on incoming interface */ |
527 | schedule_forward_packet(orig_node, ethhdr, batman_packet, | 527 | schedule_forward_packet(orig_node, ethhdr, batman_packet, |
528 | 1, hna_buff_len, if_incoming); | 528 | 1, hna_buff_len, if_incoming); |
529 | 529 | ||
530 | bat_dbg(DBG_BATMAN, "Forwarding packet: rebroadcast neighbour packet with direct link flag\n"); | 530 | bat_dbg(DBG_BATMAN, "Forwarding packet: rebroadcast neighbor packet with direct link flag\n"); |
531 | return; | 531 | return; |
532 | } | 532 | } |
533 | 533 | ||
diff --git a/drivers/staging/batman-adv/types.h b/drivers/staging/batman-adv/types.h index 3a0ef0c38c9..9739358caca 100644 --- a/drivers/staging/batman-adv/types.h +++ b/drivers/staging/batman-adv/types.h | |||
@@ -75,7 +75,7 @@ struct neigh_node { | |||
75 | uint8_t tq_index; | 75 | uint8_t tq_index; |
76 | uint8_t tq_avg; | 76 | uint8_t tq_avg; |
77 | uint8_t last_ttl; | 77 | uint8_t last_ttl; |
78 | unsigned long last_valid; /* when last packet via this neighbour was received */ | 78 | unsigned long last_valid; /* when last packet via this neighbor was received */ |
79 | TYPE_OF_WORD real_bits[NUM_WORDS]; | 79 | TYPE_OF_WORD real_bits[NUM_WORDS]; |
80 | struct orig_node *orig_node; | 80 | struct orig_node *orig_node; |
81 | struct batman_if *if_incoming; | 81 | struct batman_if *if_incoming; |