|
@@ -154,7 +154,7 @@ int mei_io_cb_alloc_req_buf(struct mei_cl_cb *cb, size_t length)
|
|
|
return 0;
|
|
|
}
|
|
|
/**
|
|
|
- * mei_io_cb_alloc_resp_buf - allocate respose buffer
|
|
|
+ * mei_io_cb_alloc_resp_buf - allocate response buffer
|
|
|
*
|
|
|
* @cb: io callback structure
|
|
|
* @length: size of the buffer
|
|
@@ -207,7 +207,7 @@ int mei_cl_flush_queues(struct mei_cl *cl)
|
|
|
|
|
|
|
|
|
/**
|
|
|
- * mei_cl_init - initializes intialize cl.
|
|
|
+ * mei_cl_init - initializes cl.
|
|
|
*
|
|
|
* @cl: host client to be initialized
|
|
|
* @dev: mei device
|
|
@@ -263,10 +263,10 @@ struct mei_cl_cb *mei_cl_find_read_cb(struct mei_cl *cl)
|
|
|
return NULL;
|
|
|
}
|
|
|
|
|
|
-/** mei_cl_link: allocte host id in the host map
|
|
|
+/** mei_cl_link: allocate host id in the host map
|
|
|
*
|
|
|
* @cl - host client
|
|
|
- * @id - fixed host id or -1 for genereting one
|
|
|
+ * @id - fixed host id or -1 for generic one
|
|
|
*
|
|
|
* returns 0 on success
|
|
|
* -EINVAL on incorrect values
|
|
@@ -282,19 +282,19 @@ int mei_cl_link(struct mei_cl *cl, int id)
|
|
|
|
|
|
dev = cl->dev;
|
|
|
|
|
|
- /* If Id is not asigned get one*/
|
|
|
+ /* If Id is not assigned get one*/
|
|
|
if (id == MEI_HOST_CLIENT_ID_ANY)
|
|
|
id = find_first_zero_bit(dev->host_clients_map,
|
|
|
MEI_CLIENTS_MAX);
|
|
|
|
|
|
if (id >= MEI_CLIENTS_MAX) {
|
|
|
- dev_err(&dev->pdev->dev, "id exceded %d", MEI_CLIENTS_MAX) ;
|
|
|
+ dev_err(&dev->pdev->dev, "id exceeded %d", MEI_CLIENTS_MAX);
|
|
|
return -EMFILE;
|
|
|
}
|
|
|
|
|
|
open_handle_count = dev->open_handle_count + dev->iamthif_open_count;
|
|
|
if (open_handle_count >= MEI_MAX_OPEN_HANDLE_COUNT) {
|
|
|
- dev_err(&dev->pdev->dev, "open_handle_count exceded %d",
|
|
|
+ dev_err(&dev->pdev->dev, "open_handle_count exceeded %d",
|
|
|
MEI_MAX_OPEN_HANDLE_COUNT);
|
|
|
return -EMFILE;
|
|
|
}
|
|
@@ -376,7 +376,7 @@ void mei_host_client_init(struct work_struct *work)
|
|
|
|
|
|
|
|
|
/**
|
|
|
- * mei_cl_disconnect - disconnect host clinet form the me one
|
|
|
+ * mei_cl_disconnect - disconnect host client from the me one
|
|
|
*
|
|
|
* @cl: host client
|
|
|
*
|
|
@@ -455,7 +455,7 @@ free:
|
|
|
*
|
|
|
* @cl: private data of the file object
|
|
|
*
|
|
|
- * returns ture if other client is connected, 0 - otherwise.
|
|
|
+ * returns true if other client is connected, false - otherwise.
|
|
|
*/
|
|
|
bool mei_cl_is_other_connecting(struct mei_cl *cl)
|
|
|
{
|
|
@@ -479,7 +479,7 @@ bool mei_cl_is_other_connecting(struct mei_cl *cl)
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * mei_cl_connect - connect host clinet to the me one
|
|
|
+ * mei_cl_connect - connect host client to the me one
|
|
|
*
|
|
|
* @cl: host client
|
|
|
*
|
|
@@ -774,7 +774,7 @@ int mei_cl_irq_write_complete(struct mei_cl *cl, struct mei_cl_cb *cb,
|
|
|
* @cl: host client
|
|
|
* @cl: write callback with filled data
|
|
|
*
|
|
|
- * returns numbe of bytes sent on success, <0 on failure.
|
|
|
+ * returns number of bytes sent on success, <0 on failure.
|
|
|
*/
|
|
|
int mei_cl_write(struct mei_cl *cl, struct mei_cl_cb *cb, bool blocking)
|
|
|
{
|