@@ -187,7 +187,7 @@ struct usb_ftdi {
187187 u32 controlreg ;
188188 u8 response [4 + 1024 ];
189189 int expected ;
190- int recieved ;
190+ int received ;
191191 int ed_found ;
192192};
193193#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)
353353 mutex_lock (& ftdi -> u132_lock );
354354 }
355355 }
356- ftdi -> recieved = 0 ;
356+ ftdi -> received = 0 ;
357357 ftdi -> expected = 4 ;
358358 ftdi -> ed_found = 0 ;
359359 mutex_unlock (& ftdi -> u132_lock );
@@ -411,7 +411,7 @@ static void ftdi_elan_flush_targets(struct usb_ftdi *ftdi)
411411 }
412412 }
413413 }
414- ftdi -> recieved = 0 ;
414+ ftdi -> received = 0 ;
415415 ftdi -> expected = 4 ;
416416 ftdi -> ed_found = 0 ;
417417 mutex_unlock (& ftdi -> u132_lock );
@@ -447,7 +447,7 @@ static void ftdi_elan_cancel_targets(struct usb_ftdi *ftdi)
447447 }
448448 }
449449 }
450- ftdi -> recieved = 0 ;
450+ ftdi -> received = 0 ;
451451 ftdi -> expected = 4 ;
452452 ftdi -> ed_found = 0 ;
453453 mutex_unlock (& ftdi -> u132_lock );
@@ -874,7 +874,7 @@ static char *have_ed_set_response(struct usb_ftdi *ftdi,
874874 mutex_unlock (& ftdi -> u132_lock );
875875 ftdi_elan_do_callback (ftdi , target , 4 + ftdi -> response ,
876876 payload );
877- ftdi -> recieved = 0 ;
877+ ftdi -> received = 0 ;
878878 ftdi -> expected = 4 ;
879879 ftdi -> ed_found = 0 ;
880880 return ftdi -> response ;
@@ -890,7 +890,7 @@ static char *have_ed_set_response(struct usb_ftdi *ftdi,
890890 mutex_unlock (& ftdi -> u132_lock );
891891 ftdi_elan_do_callback (ftdi , target , 4 + ftdi -> response ,
892892 payload );
893- ftdi -> recieved = 0 ;
893+ ftdi -> received = 0 ;
894894 ftdi -> expected = 4 ;
895895 ftdi -> ed_found = 0 ;
896896 return ftdi -> response ;
@@ -905,7 +905,7 @@ static char *have_ed_set_response(struct usb_ftdi *ftdi,
905905 mutex_unlock (& ftdi -> u132_lock );
906906 ftdi_elan_do_callback (ftdi , target , 4 + ftdi -> response ,
907907 payload );
908- ftdi -> recieved = 0 ;
908+ ftdi -> received = 0 ;
909909 ftdi -> expected = 4 ;
910910 ftdi -> ed_found = 0 ;
911911 return ftdi -> response ;
@@ -914,7 +914,7 @@ static char *have_ed_set_response(struct usb_ftdi *ftdi,
914914 mutex_unlock (& ftdi -> u132_lock );
915915 ftdi_elan_do_callback (ftdi , target , 4 + ftdi -> response ,
916916 payload );
917- ftdi -> recieved = 0 ;
917+ ftdi -> received = 0 ;
918918 ftdi -> expected = 4 ;
919919 ftdi -> ed_found = 0 ;
920920 return ftdi -> response ;
@@ -934,7 +934,7 @@ static char *have_ed_get_response(struct usb_ftdi *ftdi,
934934 if (target -> active )
935935 ftdi_elan_do_callback (ftdi , target , NULL , 0 );
936936 target -> abandoning = 0 ;
937- ftdi -> recieved = 0 ;
937+ ftdi -> received = 0 ;
938938 ftdi -> expected = 4 ;
939939 ftdi -> ed_found = 0 ;
940940 return ftdi -> response ;
@@ -951,7 +951,7 @@ static char *have_ed_get_response(struct usb_ftdi *ftdi,
951951*/
952952static int ftdi_elan_respond_engine (struct usb_ftdi * ftdi )
953953{
954- u8 * b = ftdi -> response + ftdi -> recieved ;
954+ u8 * b = ftdi -> response + ftdi -> received ;
955955 int bytes_read = 0 ;
956956 int retry_on_empty = 1 ;
957957 int retry_on_timeout = 3 ;
@@ -1043,11 +1043,11 @@ static int ftdi_elan_respond_engine(struct usb_ftdi *ftdi)
10431043 u8 c = ftdi -> bulk_in_buffer [++ ftdi -> bulk_in_last ];
10441044 bytes_read += 1 ;
10451045 ftdi -> bulk_in_left -= 1 ;
1046- if (ftdi -> recieved == 0 && c == 0xFF ) {
1046+ if (ftdi -> received == 0 && c == 0xFF ) {
10471047 goto have ;
10481048 } else
10491049 * b ++ = c ;
1050- if (++ ftdi -> recieved < ftdi -> expected ) {
1050+ if (++ ftdi -> received < ftdi -> expected ) {
10511051 goto have ;
10521052 } else if (ftdi -> ed_found ) {
10531053 int ed_number = (ftdi -> response [0 ] >> 5 ) & 0x03 ;
@@ -1069,7 +1069,7 @@ static int ftdi_elan_respond_engine(struct usb_ftdi *ftdi)
10691069 }
10701070 ftdi_elan_do_callback (ftdi , target , 4 + ftdi -> response ,
10711071 payload );
1072- ftdi -> recieved = 0 ;
1072+ ftdi -> received = 0 ;
10731073 ftdi -> expected = 4 ;
10741074 ftdi -> ed_found = 0 ;
10751075 b = ftdi -> response ;
@@ -1089,7 +1089,7 @@ static int ftdi_elan_respond_engine(struct usb_ftdi *ftdi)
10891089 * respond -> value = data ;
10901090 * respond -> result = 0 ;
10911091 complete (& respond -> wait_completion );
1092- ftdi -> recieved = 0 ;
1092+ ftdi -> received = 0 ;
10931093 ftdi -> expected = 4 ;
10941094 ftdi -> ed_found = 0 ;
10951095 b = ftdi -> response ;
0 commit comments