treewide: Fix recieve/receive typos
Just spelling fixes. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
This commit is contained in:
parent
e44ba033c5
commit
dbc6221be7
5 changed files with 19 additions and 19 deletions
|
@ -1625,8 +1625,8 @@ static void __vub300_command_response(struct vub300_mmc_host *vub300,
|
||||||
cmd->error = respretval;
|
cmd->error = respretval;
|
||||||
} else if (cmd->error) {
|
} else if (cmd->error) {
|
||||||
/*
|
/*
|
||||||
* the error occured sending the command
|
* the error occurred sending the command
|
||||||
* or recieving the response
|
* or receiving the response
|
||||||
*/
|
*/
|
||||||
} else if (vub300->command_out_urb->status) {
|
} else if (vub300->command_out_urb->status) {
|
||||||
vub300->usb_transport_fail = vub300->command_out_urb->status;
|
vub300->usb_transport_fail = vub300->command_out_urb->status;
|
||||||
|
|
|
@ -380,7 +380,7 @@ struct lmc___softc {
|
||||||
/* CSR6 settings */
|
/* CSR6 settings */
|
||||||
#define OPERATION_MODE 0x00000200 /* Full Duplex */
|
#define OPERATION_MODE 0x00000200 /* Full Duplex */
|
||||||
#define PROMISC_MODE 0x00000040 /* Promiscuous Mode */
|
#define PROMISC_MODE 0x00000040 /* Promiscuous Mode */
|
||||||
#define RECIEVE_ALL 0x40000000 /* Receive All */
|
#define RECEIVE_ALL 0x40000000 /* Receive All */
|
||||||
#define PASS_BAD_FRAMES 0x00000008 /* Pass Bad Frames */
|
#define PASS_BAD_FRAMES 0x00000008 /* Pass Bad Frames */
|
||||||
|
|
||||||
/* Dec control registers CSR6 as well */
|
/* Dec control registers CSR6 as well */
|
||||||
|
|
|
@ -187,7 +187,7 @@ struct usb_ftdi {
|
||||||
u32 controlreg;
|
u32 controlreg;
|
||||||
u8 response[4 + 1024];
|
u8 response[4 + 1024];
|
||||||
int expected;
|
int expected;
|
||||||
int recieved;
|
int received;
|
||||||
int ed_found;
|
int ed_found;
|
||||||
};
|
};
|
||||||
#define kref_to_usb_ftdi(d) container_of(d, struct usb_ftdi, kref)
|
#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)
|
||||||
mutex_lock(&ftdi->u132_lock);
|
mutex_lock(&ftdi->u132_lock);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ftdi->recieved = 0;
|
ftdi->received = 0;
|
||||||
ftdi->expected = 4;
|
ftdi->expected = 4;
|
||||||
ftdi->ed_found = 0;
|
ftdi->ed_found = 0;
|
||||||
mutex_unlock(&ftdi->u132_lock);
|
mutex_unlock(&ftdi->u132_lock);
|
||||||
|
@ -411,7 +411,7 @@ static void ftdi_elan_flush_targets(struct usb_ftdi *ftdi)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ftdi->recieved = 0;
|
ftdi->received = 0;
|
||||||
ftdi->expected = 4;
|
ftdi->expected = 4;
|
||||||
ftdi->ed_found = 0;
|
ftdi->ed_found = 0;
|
||||||
mutex_unlock(&ftdi->u132_lock);
|
mutex_unlock(&ftdi->u132_lock);
|
||||||
|
@ -447,7 +447,7 @@ static void ftdi_elan_cancel_targets(struct usb_ftdi *ftdi)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ftdi->recieved = 0;
|
ftdi->received = 0;
|
||||||
ftdi->expected = 4;
|
ftdi->expected = 4;
|
||||||
ftdi->ed_found = 0;
|
ftdi->ed_found = 0;
|
||||||
mutex_unlock(&ftdi->u132_lock);
|
mutex_unlock(&ftdi->u132_lock);
|
||||||
|
@ -874,7 +874,7 @@ static char *have_ed_set_response(struct usb_ftdi *ftdi,
|
||||||
mutex_unlock(&ftdi->u132_lock);
|
mutex_unlock(&ftdi->u132_lock);
|
||||||
ftdi_elan_do_callback(ftdi, target, 4 + ftdi->response,
|
ftdi_elan_do_callback(ftdi, target, 4 + ftdi->response,
|
||||||
payload);
|
payload);
|
||||||
ftdi->recieved = 0;
|
ftdi->received = 0;
|
||||||
ftdi->expected = 4;
|
ftdi->expected = 4;
|
||||||
ftdi->ed_found = 0;
|
ftdi->ed_found = 0;
|
||||||
return ftdi->response;
|
return ftdi->response;
|
||||||
|
@ -890,7 +890,7 @@ static char *have_ed_set_response(struct usb_ftdi *ftdi,
|
||||||
mutex_unlock(&ftdi->u132_lock);
|
mutex_unlock(&ftdi->u132_lock);
|
||||||
ftdi_elan_do_callback(ftdi, target, 4 + ftdi->response,
|
ftdi_elan_do_callback(ftdi, target, 4 + ftdi->response,
|
||||||
payload);
|
payload);
|
||||||
ftdi->recieved = 0;
|
ftdi->received = 0;
|
||||||
ftdi->expected = 4;
|
ftdi->expected = 4;
|
||||||
ftdi->ed_found = 0;
|
ftdi->ed_found = 0;
|
||||||
return ftdi->response;
|
return ftdi->response;
|
||||||
|
@ -905,7 +905,7 @@ static char *have_ed_set_response(struct usb_ftdi *ftdi,
|
||||||
mutex_unlock(&ftdi->u132_lock);
|
mutex_unlock(&ftdi->u132_lock);
|
||||||
ftdi_elan_do_callback(ftdi, target, 4 + ftdi->response,
|
ftdi_elan_do_callback(ftdi, target, 4 + ftdi->response,
|
||||||
payload);
|
payload);
|
||||||
ftdi->recieved = 0;
|
ftdi->received = 0;
|
||||||
ftdi->expected = 4;
|
ftdi->expected = 4;
|
||||||
ftdi->ed_found = 0;
|
ftdi->ed_found = 0;
|
||||||
return ftdi->response;
|
return ftdi->response;
|
||||||
|
@ -914,7 +914,7 @@ static char *have_ed_set_response(struct usb_ftdi *ftdi,
|
||||||
mutex_unlock(&ftdi->u132_lock);
|
mutex_unlock(&ftdi->u132_lock);
|
||||||
ftdi_elan_do_callback(ftdi, target, 4 + ftdi->response,
|
ftdi_elan_do_callback(ftdi, target, 4 + ftdi->response,
|
||||||
payload);
|
payload);
|
||||||
ftdi->recieved = 0;
|
ftdi->received = 0;
|
||||||
ftdi->expected = 4;
|
ftdi->expected = 4;
|
||||||
ftdi->ed_found = 0;
|
ftdi->ed_found = 0;
|
||||||
return ftdi->response;
|
return ftdi->response;
|
||||||
|
@ -934,7 +934,7 @@ static char *have_ed_get_response(struct usb_ftdi *ftdi,
|
||||||
if (target->active)
|
if (target->active)
|
||||||
ftdi_elan_do_callback(ftdi, target, NULL, 0);
|
ftdi_elan_do_callback(ftdi, target, NULL, 0);
|
||||||
target->abandoning = 0;
|
target->abandoning = 0;
|
||||||
ftdi->recieved = 0;
|
ftdi->received = 0;
|
||||||
ftdi->expected = 4;
|
ftdi->expected = 4;
|
||||||
ftdi->ed_found = 0;
|
ftdi->ed_found = 0;
|
||||||
return ftdi->response;
|
return ftdi->response;
|
||||||
|
@ -951,7 +951,7 @@ static char *have_ed_get_response(struct usb_ftdi *ftdi,
|
||||||
*/
|
*/
|
||||||
static int ftdi_elan_respond_engine(struct usb_ftdi *ftdi)
|
static int ftdi_elan_respond_engine(struct usb_ftdi *ftdi)
|
||||||
{
|
{
|
||||||
u8 *b = ftdi->response + ftdi->recieved;
|
u8 *b = ftdi->response + ftdi->received;
|
||||||
int bytes_read = 0;
|
int bytes_read = 0;
|
||||||
int retry_on_empty = 1;
|
int retry_on_empty = 1;
|
||||||
int retry_on_timeout = 3;
|
int retry_on_timeout = 3;
|
||||||
|
@ -1043,11 +1043,11 @@ static int ftdi_elan_respond_engine(struct usb_ftdi *ftdi)
|
||||||
u8 c = ftdi->bulk_in_buffer[++ftdi->bulk_in_last];
|
u8 c = ftdi->bulk_in_buffer[++ftdi->bulk_in_last];
|
||||||
bytes_read += 1;
|
bytes_read += 1;
|
||||||
ftdi->bulk_in_left -= 1;
|
ftdi->bulk_in_left -= 1;
|
||||||
if (ftdi->recieved == 0 && c == 0xFF) {
|
if (ftdi->received == 0 && c == 0xFF) {
|
||||||
goto have;
|
goto have;
|
||||||
} else
|
} else
|
||||||
*b++ = c;
|
*b++ = c;
|
||||||
if (++ftdi->recieved < ftdi->expected) {
|
if (++ftdi->received < ftdi->expected) {
|
||||||
goto have;
|
goto have;
|
||||||
} else if (ftdi->ed_found) {
|
} else if (ftdi->ed_found) {
|
||||||
int ed_number = (ftdi->response[0] >> 5) & 0x03;
|
int ed_number = (ftdi->response[0] >> 5) & 0x03;
|
||||||
|
@ -1069,7 +1069,7 @@ static int ftdi_elan_respond_engine(struct usb_ftdi *ftdi)
|
||||||
}
|
}
|
||||||
ftdi_elan_do_callback(ftdi, target, 4 + ftdi->response,
|
ftdi_elan_do_callback(ftdi, target, 4 + ftdi->response,
|
||||||
payload);
|
payload);
|
||||||
ftdi->recieved = 0;
|
ftdi->received = 0;
|
||||||
ftdi->expected = 4;
|
ftdi->expected = 4;
|
||||||
ftdi->ed_found = 0;
|
ftdi->ed_found = 0;
|
||||||
b = ftdi->response;
|
b = ftdi->response;
|
||||||
|
@ -1089,7 +1089,7 @@ static int ftdi_elan_respond_engine(struct usb_ftdi *ftdi)
|
||||||
*respond->value = data;
|
*respond->value = data;
|
||||||
*respond->result = 0;
|
*respond->result = 0;
|
||||||
complete(&respond->wait_completion);
|
complete(&respond->wait_completion);
|
||||||
ftdi->recieved = 0;
|
ftdi->received = 0;
|
||||||
ftdi->expected = 4;
|
ftdi->expected = 4;
|
||||||
ftdi->ed_found = 0;
|
ftdi->ed_found = 0;
|
||||||
b = ftdi->response;
|
b = ftdi->response;
|
||||||
|
|
|
@ -262,7 +262,7 @@ int osd_execute_request_async(struct osd_request *or,
|
||||||
* osd_req_decode_sense_full - Decode sense information after execution.
|
* osd_req_decode_sense_full - Decode sense information after execution.
|
||||||
*
|
*
|
||||||
* @or: - osd_request to examine
|
* @or: - osd_request to examine
|
||||||
* @osi - Recievs a more detailed error report information (optional).
|
* @osi - Receives a more detailed error report information (optional).
|
||||||
* @silent - Do not print to dmsg (Even if enabled)
|
* @silent - Do not print to dmsg (Even if enabled)
|
||||||
* @bad_obj_list - Some commands act on multiple objects. Failed objects will
|
* @bad_obj_list - Some commands act on multiple objects. Failed objects will
|
||||||
* be received here (optional)
|
* be received here (optional)
|
||||||
|
|
|
@ -330,7 +330,7 @@ static int cx81801_hangup(struct tty_struct *tty)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Line discipline .recieve_buf() */
|
/* Line discipline .receive_buf() */
|
||||||
static void cx81801_receive(struct tty_struct *tty,
|
static void cx81801_receive(struct tty_struct *tty,
|
||||||
const unsigned char *cp, char *fp, int count)
|
const unsigned char *cp, char *fp, int count)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue