Skip to content

Commit 83ce074

Browse files
ausyskingregkh
authored andcommitted
mei: fix syntax in comments and debug output
Fix syntax errors in comments and debug strings Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com> Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 0631213 commit 83ce074

8 files changed

Lines changed: 36 additions & 36 deletions

File tree

‎drivers/misc/mei/amthif.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ int mei_amthif_read(struct mei_device *dev, struct file *file,
177177
unsigned long timeout;
178178
int i;
179179

180-
/* Only Posible if we are in timeout */
180+
/* Only possible if we are in timeout */
181181
if (!cl || cl != &dev->iamthif_cl) {
182182
dev_dbg(&dev->pdev->dev, "bad file ext.\n");
183183
return -ETIMEDOUT;
@@ -249,7 +249,7 @@ int mei_amthif_read(struct mei_device *dev, struct file *file,
249249
cb->response_buffer.size);
250250
dev_dbg(&dev->pdev->dev, "amthif cb->buf_idx - %lu\n", cb->buf_idx);
251251

252-
/* length is being turncated to PAGE_SIZE, however,
252+
/* length is being truncated to PAGE_SIZE, however,
253253
* the buf_idx may point beyond */
254254
length = min_t(size_t, length, (cb->buf_idx - *offset));
255255

‎drivers/misc/mei/client.c‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ int mei_io_cb_alloc_req_buf(struct mei_cl_cb *cb, size_t length)
154154
return 0;
155155
}
156156
/**
157-
* mei_io_cb_alloc_resp_buf - allocate respose buffer
157+
* mei_io_cb_alloc_resp_buf - allocate response buffer
158158
*
159159
* @cb: io callback structure
160160
* @length: size of the buffer
@@ -207,7 +207,7 @@ int mei_cl_flush_queues(struct mei_cl *cl)
207207

208208

209209
/**
210-
* mei_cl_init - initializes intialize cl.
210+
* mei_cl_init - initializes cl.
211211
*
212212
* @cl: host client to be initialized
213213
* @dev: mei device
@@ -263,10 +263,10 @@ struct mei_cl_cb *mei_cl_find_read_cb(struct mei_cl *cl)
263263
return NULL;
264264
}
265265

266-
/** mei_cl_link: allocte host id in the host map
266+
/** mei_cl_link: allocate host id in the host map
267267
*
268268
* @cl - host client
269-
* @id - fixed host id or -1 for genereting one
269+
* @id - fixed host id or -1 for generic one
270270
*
271271
* returns 0 on success
272272
* -EINVAL on incorrect values
@@ -282,19 +282,19 @@ int mei_cl_link(struct mei_cl *cl, int id)
282282

283283
dev = cl->dev;
284284

285-
/* If Id is not asigned get one*/
285+
/* If Id is not assigned get one*/
286286
if (id == MEI_HOST_CLIENT_ID_ANY)
287287
id = find_first_zero_bit(dev->host_clients_map,
288288
MEI_CLIENTS_MAX);
289289

290290
if (id >= MEI_CLIENTS_MAX) {
291-
dev_err(&dev->pdev->dev, "id exceded %d", MEI_CLIENTS_MAX) ;
291+
dev_err(&dev->pdev->dev, "id exceeded %d", MEI_CLIENTS_MAX);
292292
return -EMFILE;
293293
}
294294

295295
open_handle_count = dev->open_handle_count + dev->iamthif_open_count;
296296
if (open_handle_count >= MEI_MAX_OPEN_HANDLE_COUNT) {
297-
dev_err(&dev->pdev->dev, "open_handle_count exceded %d",
297+
dev_err(&dev->pdev->dev, "open_handle_count exceeded %d",
298298
MEI_MAX_OPEN_HANDLE_COUNT);
299299
return -EMFILE;
300300
}
@@ -376,7 +376,7 @@ void mei_host_client_init(struct work_struct *work)
376376

377377

378378
/**
379-
* mei_cl_disconnect - disconnect host clinet form the me one
379+
* mei_cl_disconnect - disconnect host client from the me one
380380
*
381381
* @cl: host client
382382
*
@@ -455,7 +455,7 @@ int mei_cl_disconnect(struct mei_cl *cl)
455455
*
456456
* @cl: private data of the file object
457457
*
458-
* returns ture if other client is connected, 0 - otherwise.
458+
* returns true if other client is connected, false - otherwise.
459459
*/
460460
bool mei_cl_is_other_connecting(struct mei_cl *cl)
461461
{
@@ -479,7 +479,7 @@ bool mei_cl_is_other_connecting(struct mei_cl *cl)
479479
}
480480

481481
/**
482-
* mei_cl_connect - connect host clinet to the me one
482+
* mei_cl_connect - connect host client to the me one
483483
*
484484
* @cl: host client
485485
*
@@ -774,7 +774,7 @@ int mei_cl_irq_write_complete(struct mei_cl *cl, struct mei_cl_cb *cb,
774774
* @cl: host client
775775
* @cl: write callback with filled data
776776
*
777-
* returns numbe of bytes sent on success, <0 on failure.
777+
* returns number of bytes sent on success, <0 on failure.
778778
*/
779779
int mei_cl_write(struct mei_cl *cl, struct mei_cl_cb *cb, bool blocking)
780780
{

‎drivers/misc/mei/debugfs.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ static ssize_t mei_dbgfs_read_meclients(struct file *fp, char __user *ubuf,
4343

4444
mutex_lock(&dev->device_lock);
4545

46-
/* if the driver is not enabled the list won't b consitent */
46+
/* if the driver is not enabled the list won't be consistent */
4747
if (dev->dev_state != MEI_DEV_ENABLED)
4848
goto out;
4949

@@ -101,7 +101,7 @@ static const struct file_operations mei_dbgfs_fops_devstate = {
101101

102102
/**
103103
* mei_dbgfs_deregister - Remove the debugfs files and directories
104-
* @mei - pointer to mei device private dat
104+
* @mei - pointer to mei device private data
105105
*/
106106
void mei_dbgfs_deregister(struct mei_device *dev)
107107
{

‎drivers/misc/mei/hbm.c‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,12 @@ void mei_hbm_cl_hdr(struct mei_cl *cl, u8 hbm_cmd, void *buf, size_t len)
8383
}
8484

8585
/**
86-
* same_disconn_addr - tells if they have the same address
86+
* mei_hbm_cl_addr_equal - tells if they have the same address
8787
*
88-
* @file: private data of the file object.
89-
* @disconn: disconnection request.
88+
* @cl: - client
89+
* @buf: buffer with cl header
9090
*
91-
* returns true if addres are same
91+
* returns true if addresses are the same
9292
*/
9393
static inline
9494
bool mei_hbm_cl_addr_equal(struct mei_cl *cl, void *buf)
@@ -283,7 +283,7 @@ static int mei_hbm_prop_req(struct mei_device *dev)
283283
}
284284

285285
/**
286-
* mei_hbm_stop_req_prepare - perpare stop request message
286+
* mei_hbm_stop_req_prepare - prepare stop request message
287287
*
288288
* @dev - mei device
289289
* @mei_hdr - mei message header
@@ -304,7 +304,7 @@ static void mei_hbm_stop_req_prepare(struct mei_device *dev,
304304
}
305305

306306
/**
307-
* mei_hbm_cl_flow_control_req - sends flow control requst.
307+
* mei_hbm_cl_flow_control_req - sends flow control request.
308308
*
309309
* @dev: the device structure
310310
* @cl: client info
@@ -466,7 +466,7 @@ int mei_hbm_cl_connect_req(struct mei_device *dev, struct mei_cl *cl)
466466
}
467467

468468
/**
469-
* mei_hbm_cl_connect_res - connect resposne from the ME
469+
* mei_hbm_cl_connect_res - connect response from the ME
470470
*
471471
* @dev: the device structure
472472
* @rs: connect response bus message
@@ -520,8 +520,8 @@ static void mei_hbm_cl_connect_res(struct mei_device *dev,
520520

521521

522522
/**
523-
* mei_hbm_fw_disconnect_req - disconnect request initiated by me
524-
* host sends disoconnect response
523+
* mei_hbm_fw_disconnect_req - disconnect request initiated by ME firmware
524+
* host sends disconnect response
525525
*
526526
* @dev: the device structure.
527527
* @disconnect_req: disconnect request bus message from the me

‎drivers/misc/mei/interrupt.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232

3333
/**
34-
* mei_irq_compl_handler - dispatch complete handelers
34+
* mei_irq_compl_handler - dispatch complete handlers
3535
* for the completed callbacks
3636
*
3737
* @dev - mei device
@@ -338,15 +338,15 @@ int mei_irq_read_handler(struct mei_device *dev,
338338
goto reset_slots;
339339
}
340340

341-
/* find recepient cl */
341+
/* find recipient cl */
342342
list_for_each_entry(cl, &dev->file_list, link) {
343343
if (mei_cl_hbm_equal(cl, mei_hdr)) {
344344
cl_dbg(dev, cl, "got a message\n");
345345
break;
346346
}
347347
}
348348

349-
/* if no recepient cl was found we assume corrupted header\n */
349+
/* if no recipient cl was found we assume corrupted header */
350350
if (&cl->link == &dev->file_list) {
351351
dev_err(&dev->pdev->dev, "no destination client found 0x%08X\n",
352352
dev->rd_msg_hdr);

‎drivers/misc/mei/main.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
*
4949
* @inode: pointer to inode structure
5050
* @file: pointer to file structure
51-
e
51+
*
5252
* returns 0 on success, <0 on error
5353
*/
5454
static int mei_open(struct inode *inode, struct file *file)

‎drivers/misc/mei/mei_dev.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ extern const uuid_le mei_wd_guid;
6565
* that can be opened to the driver.
6666
*
6767
* Limit to 255: 256 Total Clients
68-
* minus internal client for MEI Bus Messags
68+
* minus internal client for MEI Bus Messages
6969
*/
7070
#define MEI_MAX_OPEN_HANDLE_COUNT (MEI_CLIENTS_MAX - 1)
7171

@@ -181,7 +181,7 @@ struct mei_cl_cb {
181181
u32 internal:1;
182182
};
183183

184-
/* MEI client instance carried as file->pirvate_data*/
184+
/* MEI client instance carried as file->private_data*/
185185
struct mei_cl {
186186
struct list_head link;
187187
struct mei_device *dev;

‎drivers/misc/mei/nfc.c‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ struct mei_nfc_hci_hdr {
9292
* @cl: NFC host client
9393
* @cl_info: NFC info host client
9494
* @init_work: perform connection to the info client
95-
* @fw_ivn: NFC Intervace Version Number
95+
* @fw_ivn: NFC Interface Version Number
9696
* @vendor_id: NFC manufacturer ID
9797
* @radio_type: NFC radio type
9898
*/
@@ -163,7 +163,7 @@ static int mei_nfc_build_bus_name(struct mei_nfc_dev *ndev)
163163
return 0;
164164

165165
default:
166-
dev_err(&dev->pdev->dev, "Unknow radio type 0x%x\n",
166+
dev_err(&dev->pdev->dev, "Unknown radio type 0x%x\n",
167167
ndev->radio_type);
168168

169169
return -EINVAL;
@@ -175,14 +175,14 @@ static int mei_nfc_build_bus_name(struct mei_nfc_dev *ndev)
175175
ndev->bus_name = "pn544";
176176
return 0;
177177
default:
178-
dev_err(&dev->pdev->dev, "Unknow radio type 0x%x\n",
178+
dev_err(&dev->pdev->dev, "Unknown radio type 0x%x\n",
179179
ndev->radio_type);
180180

181181
return -EINVAL;
182182
}
183183

184184
default:
185-
dev_err(&dev->pdev->dev, "Unknow vendor ID 0x%x\n",
185+
dev_err(&dev->pdev->dev, "Unknown vendor ID 0x%x\n",
186186
ndev->vendor_id);
187187

188188
return -EINVAL;
@@ -428,7 +428,7 @@ static void mei_nfc_init(struct work_struct *work)
428428
mutex_unlock(&dev->device_lock);
429429

430430
if (mei_nfc_if_version(ndev) < 0) {
431-
dev_err(&dev->pdev->dev, "Could not get the NFC interfave version");
431+
dev_err(&dev->pdev->dev, "Could not get the NFC interface version");
432432

433433
goto err;
434434
}
@@ -483,7 +483,7 @@ int mei_nfc_host_init(struct mei_device *dev)
483483
struct mei_cl *cl_info, *cl = NULL;
484484
int i, ret;
485485

486-
/* already initialzed */
486+
/* already initialized */
487487
if (ndev->cl_info)
488488
return 0;
489489

0 commit comments

Comments
 (0)