diff options
author | Joe Perches <joe@perches.com> | 2011-06-23 14:39:19 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2011-06-24 05:18:57 -0400 |
commit | dbc6221be7a2bf556fefe75ac939143d4e82ecaf (patch) | |
tree | b30f49bf02c4438b3bff90828fa60f1787a5c150 /drivers/usb | |
parent | e44ba033c5654dbfda53461c9b1f7dd9bd1d198f (diff) |
treewide: Fix recieve/receive typos
Just spelling fixes.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/misc/ftdi-elan.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/drivers/usb/misc/ftdi-elan.c b/drivers/usb/misc/ftdi-elan.c index b16bd3ce3915..2f41089cd854 100644 --- a/drivers/usb/misc/ftdi-elan.c +++ b/drivers/usb/misc/ftdi-elan.c | |||
@@ -187,7 +187,7 @@ struct usb_ftdi { | |||
187 | u32 controlreg; | 187 | u32 controlreg; |
188 | u8 response[4 + 1024]; | 188 | u8 response[4 + 1024]; |
189 | int expected; | 189 | int expected; |
190 | int recieved; | 190 | int received; |
191 | int ed_found; | 191 | int ed_found; |
192 | }; | 192 | }; |
193 | #define kref_to_usb_ftdi(d) container_of(d, struct usb_ftdi, kref) | 193 | #define kref_to_usb_ftdi(d) container_of(d, struct usb_ftdi, kref) |
@@ -353,7 +353,7 @@ static void ftdi_elan_abandon_targets(struct usb_ftdi *ftdi) | |||
353 | mutex_lock(&ftdi->u132_lock); | 353 | mutex_lock(&ftdi->u132_lock); |
354 | } | 354 | } |
355 | } | 355 | } |
356 | ftdi->recieved = 0; | 356 | ftdi->received = 0; |
357 | ftdi->expected = 4; | 357 | ftdi->expected = 4; |
358 | ftdi->ed_found = 0; | 358 | ftdi->ed_found = 0; |
359 | mutex_unlock(&ftdi->u132_lock); | 359 | mutex_unlock(&ftdi->u132_lock); |
@@ -411,7 +411,7 @@ static void ftdi_elan_flush_targets(struct usb_ftdi *ftdi) | |||
411 | } | 411 | } |
412 | } | 412 | } |
413 | } | 413 | } |
414 | ftdi->recieved = 0; | 414 | ftdi->received = 0; |
415 | ftdi->expected = 4; | 415 | ftdi->expected = 4; |
416 | ftdi->ed_found = 0; | 416 | ftdi->ed_found = 0; |
417 | mutex_unlock(&ftdi->u132_lock); | 417 | mutex_unlock(&ftdi->u132_lock); |
@@ -447,7 +447,7 @@ static void ftdi_elan_cancel_targets(struct usb_ftdi *ftdi) | |||
447 | } | 447 | } |
448 | } | 448 | } |
449 | } | 449 | } |
450 | ftdi->recieved = 0; | 450 | ftdi->received = 0; |
451 | ftdi->expected = 4; | 451 | ftdi->expected = 4; |
452 | ftdi->ed_found = 0; | 452 | ftdi->ed_found = 0; |
453 | mutex_unlock(&ftdi->u132_lock); | 453 | mutex_unlock(&ftdi->u132_lock); |
@@ -874,7 +874,7 @@ static char *have_ed_set_response(struct usb_ftdi *ftdi, | |||
874 | mutex_unlock(&ftdi->u132_lock); | 874 | mutex_unlock(&ftdi->u132_lock); |
875 | ftdi_elan_do_callback(ftdi, target, 4 + ftdi->response, | 875 | ftdi_elan_do_callback(ftdi, target, 4 + ftdi->response, |
876 | payload); | 876 | payload); |
877 | ftdi->recieved = 0; | 877 | ftdi->received = 0; |
878 | ftdi->expected = 4; | 878 | ftdi->expected = 4; |
879 | ftdi->ed_found = 0; | 879 | ftdi->ed_found = 0; |
880 | return ftdi->response; | 880 | return ftdi->response; |
@@ -890,7 +890,7 @@ static char *have_ed_set_response(struct usb_ftdi *ftdi, | |||
890 | mutex_unlock(&ftdi->u132_lock); | 890 | mutex_unlock(&ftdi->u132_lock); |
891 | ftdi_elan_do_callback(ftdi, target, 4 + ftdi->response, | 891 | ftdi_elan_do_callback(ftdi, target, 4 + ftdi->response, |
892 | payload); | 892 | payload); |
893 | ftdi->recieved = 0; | 893 | ftdi->received = 0; |
894 | ftdi->expected = 4; | 894 | ftdi->expected = 4; |
895 | ftdi->ed_found = 0; | 895 | ftdi->ed_found = 0; |
896 | return ftdi->response; | 896 | return ftdi->response; |
@@ -905,7 +905,7 @@ static char *have_ed_set_response(struct usb_ftdi *ftdi, | |||
905 | mutex_unlock(&ftdi->u132_lock); | 905 | mutex_unlock(&ftdi->u132_lock); |
906 | ftdi_elan_do_callback(ftdi, target, 4 + ftdi->response, | 906 | ftdi_elan_do_callback(ftdi, target, 4 + ftdi->response, |
907 | payload); | 907 | payload); |
908 | ftdi->recieved = 0; | 908 | ftdi->received = 0; |
909 | ftdi->expected = 4; | 909 | ftdi->expected = 4; |
910 | ftdi->ed_found = 0; | 910 | ftdi->ed_found = 0; |
911 | return ftdi->response; | 911 | return ftdi->response; |
@@ -914,7 +914,7 @@ static char *have_ed_set_response(struct usb_ftdi *ftdi, | |||
914 | mutex_unlock(&ftdi->u132_lock); | 914 | mutex_unlock(&ftdi->u132_lock); |
915 | ftdi_elan_do_callback(ftdi, target, 4 + ftdi->response, | 915 | ftdi_elan_do_callback(ftdi, target, 4 + ftdi->response, |
916 | payload); | 916 | payload); |
917 | ftdi->recieved = 0; | 917 | ftdi->received = 0; |
918 | ftdi->expected = 4; | 918 | ftdi->expected = 4; |
919 | ftdi->ed_found = 0; | 919 | ftdi->ed_found = 0; |
920 | return ftdi->response; | 920 | return ftdi->response; |
@@ -934,7 +934,7 @@ static char *have_ed_get_response(struct usb_ftdi *ftdi, | |||
934 | if (target->active) | 934 | if (target->active) |
935 | ftdi_elan_do_callback(ftdi, target, NULL, 0); | 935 | ftdi_elan_do_callback(ftdi, target, NULL, 0); |
936 | target->abandoning = 0; | 936 | target->abandoning = 0; |
937 | ftdi->recieved = 0; | 937 | ftdi->received = 0; |
938 | ftdi->expected = 4; | 938 | ftdi->expected = 4; |
939 | ftdi->ed_found = 0; | 939 | ftdi->ed_found = 0; |
940 | return ftdi->response; | 940 | return ftdi->response; |
@@ -951,7 +951,7 @@ static char *have_ed_get_response(struct usb_ftdi *ftdi, | |||
951 | */ | 951 | */ |
952 | static int ftdi_elan_respond_engine(struct usb_ftdi *ftdi) | 952 | static int ftdi_elan_respond_engine(struct usb_ftdi *ftdi) |
953 | { | 953 | { |
954 | u8 *b = ftdi->response + ftdi->recieved; | 954 | u8 *b = ftdi->response + ftdi->received; |
955 | int bytes_read = 0; | 955 | int bytes_read = 0; |
956 | int retry_on_empty = 1; | 956 | int retry_on_empty = 1; |
957 | int retry_on_timeout = 3; | 957 | int retry_on_timeout = 3; |
@@ -1043,11 +1043,11 @@ static int ftdi_elan_respond_engine(struct usb_ftdi *ftdi) | |||
1043 | u8 c = ftdi->bulk_in_buffer[++ftdi->bulk_in_last]; | 1043 | u8 c = ftdi->bulk_in_buffer[++ftdi->bulk_in_last]; |
1044 | bytes_read += 1; | 1044 | bytes_read += 1; |
1045 | ftdi->bulk_in_left -= 1; | 1045 | ftdi->bulk_in_left -= 1; |
1046 | if (ftdi->recieved == 0 && c == 0xFF) { | 1046 | if (ftdi->received == 0 && c == 0xFF) { |
1047 | goto have; | 1047 | goto have; |
1048 | } else | 1048 | } else |
1049 | *b++ = c; | 1049 | *b++ = c; |
1050 | if (++ftdi->recieved < ftdi->expected) { | 1050 | if (++ftdi->received < ftdi->expected) { |
1051 | goto have; | 1051 | goto have; |
1052 | } else if (ftdi->ed_found) { | 1052 | } else if (ftdi->ed_found) { |
1053 | int ed_number = (ftdi->response[0] >> 5) & 0x03; | 1053 | int ed_number = (ftdi->response[0] >> 5) & 0x03; |
@@ -1069,7 +1069,7 @@ static int ftdi_elan_respond_engine(struct usb_ftdi *ftdi) | |||
1069 | } | 1069 | } |
1070 | ftdi_elan_do_callback(ftdi, target, 4 + ftdi->response, | 1070 | ftdi_elan_do_callback(ftdi, target, 4 + ftdi->response, |
1071 | payload); | 1071 | payload); |
1072 | ftdi->recieved = 0; | 1072 | ftdi->received = 0; |
1073 | ftdi->expected = 4; | 1073 | ftdi->expected = 4; |
1074 | ftdi->ed_found = 0; | 1074 | ftdi->ed_found = 0; |
1075 | b = ftdi->response; | 1075 | b = ftdi->response; |
@@ -1089,7 +1089,7 @@ static int ftdi_elan_respond_engine(struct usb_ftdi *ftdi) | |||
1089 | *respond->value = data; | 1089 | *respond->value = data; |
1090 | *respond->result = 0; | 1090 | *respond->result = 0; |
1091 | complete(&respond->wait_completion); | 1091 | complete(&respond->wait_completion); |
1092 | ftdi->recieved = 0; | 1092 | ftdi->received = 0; |
1093 | ftdi->expected = 4; | 1093 | ftdi->expected = 4; |
1094 | ftdi->ed_found = 0; | 1094 | ftdi->ed_found = 0; |
1095 | b = ftdi->response; | 1095 | b = ftdi->response; |