Skip to content

Commit 393b148

Browse files
standby24x7Jiri Kosina
authored andcommitted
mei: Fix comments in drivers/misc/mei
Correct typos and fix stray comments. Signed-off-by: Masanari Iida <standby24x7@gmail.com> Acked-by: Winkler, Tomas <tomas.winkler@intel.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
1 parent 1051e9b commit 393b148

7 files changed

Lines changed: 29 additions & 26 deletions

File tree

‎drivers/misc/mei/amthif.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ void mei_amthif_reset_params(struct mei_device *dev)
6060
}
6161

6262
/**
63-
* mei_amthif_host_init_ - mei initialization amthif client.
63+
* mei_amthif_host_init - mei initialization amthif client.
6464
*
6565
* @dev: the device structure
6666
*
@@ -433,7 +433,7 @@ unsigned int mei_amthif_poll(struct mei_device *dev,
433433

434434

435435
/**
436-
* mei_amthif_irq_process_completed - processes completed iamthif operation.
436+
* mei_amthif_irq_write_completed - processes completed iamthif operation.
437437
*
438438
* @dev: the device structure.
439439
* @slots: free slots.
@@ -703,7 +703,7 @@ static bool mei_clear_lists(struct mei_device *dev, struct file *file)
703703
/**
704704
* mei_amthif_release - the release function
705705
*
706-
* @inode: pointer to inode structure
706+
* @dev: device structure
707707
* @file: pointer to file structure
708708
*
709709
* returns 0 on success, <0 on error

‎drivers/misc/mei/client.c‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ void mei_io_cb_free(struct mei_cl_cb *cb)
109109
* mei_io_cb_init - allocate and initialize io callback
110110
*
111111
* @cl - mei client
112-
* @file: pointer to file structure
112+
* @fp: pointer to file structure
113113
*
114114
* returns mei_cl_cb pointer or NULL;
115115
*/
@@ -132,8 +132,8 @@ struct mei_cl_cb *mei_io_cb_init(struct mei_cl *cl, struct file *fp)
132132
/**
133133
* mei_io_cb_alloc_req_buf - allocate request buffer
134134
*
135-
* @cb - io callback structure
136-
* @size: size of the buffer
135+
* @cb: io callback structure
136+
* @length: size of the buffer
137137
*
138138
* returns 0 on success
139139
* -EINVAL if cb is NULL
@@ -154,10 +154,10 @@ 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_req_buf - allocate respose buffer
157+
* mei_io_cb_alloc_resp_buf - allocate respose buffer
158158
*
159-
* @cb - io callback structure
160-
* @size: size of the buffer
159+
* @cb: io callback structure
160+
* @length: size of the buffer
161161
*
162162
* returns 0 on success
163163
* -EINVAL if cb is NULL
@@ -183,7 +183,6 @@ int mei_io_cb_alloc_resp_buf(struct mei_cl_cb *cb, size_t length)
183183
/**
184184
* mei_cl_flush_queues - flushes queue lists belonging to cl.
185185
*
186-
* @dev: the device structure
187186
* @cl: host client
188187
*/
189188
int mei_cl_flush_queues(struct mei_cl *cl)
@@ -243,7 +242,8 @@ struct mei_cl *mei_cl_allocate(struct mei_device *dev)
243242
/**
244243
* mei_cl_find_read_cb - find this cl's callback in the read list
245244
*
246-
* @dev: device structure
245+
* @cl: host client
246+
*
247247
* returns cb on success, NULL on error
248248
*/
249249
struct mei_cl_cb *mei_cl_find_read_cb(struct mei_cl *cl)
@@ -262,6 +262,7 @@ struct mei_cl_cb *mei_cl_find_read_cb(struct mei_cl *cl)
262262
*
263263
* @cl - host client
264264
* @id - fixed host id or -1 for genereting one
265+
*
265266
* returns 0 on success
266267
* -EINVAL on incorrect values
267268
* -ENONET if client not found
@@ -301,7 +302,7 @@ int mei_cl_link(struct mei_cl *cl, int id)
301302
/**
302303
* mei_cl_unlink - remove me_cl from the list
303304
*
304-
* @dev: the device structure
305+
* @cl: host client
305306
*/
306307
int mei_cl_unlink(struct mei_cl *cl)
307308
{
@@ -534,7 +535,6 @@ int mei_cl_connect(struct mei_cl *cl, struct file *file)
534535
/**
535536
* mei_cl_flow_ctrl_creds - checks flow_control credits for cl.
536537
*
537-
* @dev: the device structure
538538
* @cl: private data of the file object
539539
*
540540
* returns 1 if mei_flow_ctrl_creds >0, 0 - otherwise.
@@ -575,8 +575,8 @@ int mei_cl_flow_ctrl_creds(struct mei_cl *cl)
575575
/**
576576
* mei_cl_flow_ctrl_reduce - reduces flow_control.
577577
*
578-
* @dev: the device structure
579578
* @cl: private data of the file object
579+
*
580580
* @returns
581581
* 0 on success
582582
* -ENOENT when me client is not found
@@ -614,7 +614,7 @@ int mei_cl_flow_ctrl_reduce(struct mei_cl *cl)
614614
}
615615

616616
/**
617-
* mei_cl_start_read - the start read client message function.
617+
* mei_cl_read_start - the start read client message function.
618618
*
619619
* @cl: host client
620620
*

‎drivers/misc/mei/hbm.c‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ static void mei_hbm_me_cl_allocate(struct mei_device *dev)
6262

6363
/**
6464
* mei_hbm_cl_hdr - construct client hbm header
65+
*
6566
* @cl: - client
6667
* @hbm_cmd: host bus message command
6768
* @buf: buffer for cl header
@@ -184,7 +185,7 @@ static void mei_hbm_enum_clients_req(struct mei_device *dev)
184185
}
185186

186187
/**
187-
* mei_hbm_prop_requsest - request property for a single client
188+
* mei_hbm_prop_req - request property for a single client
188189
*
189190
* @dev: the device structure
190191
*
@@ -283,9 +284,9 @@ int mei_hbm_cl_flow_control_req(struct mei_device *dev, struct mei_cl *cl)
283284
}
284285

285286
/**
286-
* add_single_flow_creds - adds single buffer credentials.
287+
* mei_hbm_add_single_flow_creds - adds single buffer credentials.
287288
*
288-
* @file: private data ot the file object.
289+
* @dev: the device structure
289290
* @flow: flow control.
290291
*/
291292
static void mei_hbm_add_single_flow_creds(struct mei_device *dev,
@@ -477,7 +478,7 @@ static void mei_hbm_cl_connect_res(struct mei_device *dev,
477478

478479

479480
/**
480-
* mei_client_disconnect_request - disconnect request initiated by me
481+
* mei_hbm_fw_disconnect_req - disconnect request initiated by me
481482
* host sends disoconnect response
482483
*
483484
* @dev: the device structure.

‎drivers/misc/mei/hw-me.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ static inline void mei_hcsr_set(struct mei_me_hw *hw, u32 hcsr)
103103

104104

105105
/**
106-
* me_hw_config - configure hw dependent settings
106+
* mei_me_hw_config - configure hw dependent settings
107107
*
108108
* @dev: mei device
109109
*/
@@ -155,7 +155,7 @@ static void mei_me_intr_disable(struct mei_device *dev)
155155
* mei_me_hw_reset - resets fw via mei csr register.
156156
*
157157
* @dev: the device structure
158-
* @interrupts_enabled: if interrupt should be enabled after reset.
158+
* @intr_enable: if interrupt should be enabled after reset.
159159
*/
160160
static void mei_me_hw_reset(struct mei_device *dev, bool intr_enable)
161161
{
@@ -243,7 +243,7 @@ static unsigned char mei_hbuf_filled_slots(struct mei_device *dev)
243243
}
244244

245245
/**
246-
* mei_hbuf_is_empty - checks if host buffer is empty.
246+
* mei_me_hbuf_is_empty - checks if host buffer is empty.
247247
*
248248
* @dev: the device structure
249249
*
@@ -543,7 +543,7 @@ static const struct mei_hw_ops mei_me_hw_ops = {
543543
};
544544

545545
/**
546-
* init_mei_device - allocates and initializes the mei device structure
546+
* mei_me_dev_init - allocates and initializes the mei device structure
547547
*
548548
* @pdev: The pci device structure
549549
*

‎drivers/misc/mei/interrupt.c‎

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

3131

3232
/**
33-
* mei_complete_handler - processes completed operation.
33+
* mei_irq_complete_handler - processes completed operation.
3434
*
3535
* @cl: private data of the file object.
3636
* @cb_pos: callback block.
@@ -177,7 +177,7 @@ static int _mei_irq_thread_close(struct mei_device *dev, s32 *slots,
177177

178178

179179
/**
180-
* _mei_hb_read - processes read related operation.
180+
* _mei_irq_thread_read - processes read related operation.
181181
*
182182
* @dev: the device structure.
183183
* @slots: free slots.
@@ -310,7 +310,7 @@ static int mei_irq_thread_write_complete(struct mei_device *dev, s32 *slots,
310310
}
311311

312312
/**
313-
* mei_irq_thread_read_handler - bottom half read routine after ISR to
313+
* mei_irq_read_handler - bottom half read routine after ISR to
314314
* handle the read processing.
315315
*
316316
* @dev: the device structure

‎drivers/misc/mei/pci-me.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ static DEFINE_MUTEX(mei_mutex);
9292

9393
/**
9494
* mei_quirk_probe - probe for devices that doesn't valid ME interface
95+
*
9596
* @pdev: PCI device structure
9697
* @ent: entry into pci_device_table
9798
*

‎drivers/misc/mei/wd.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ static void mei_wd_set_start_timeout(struct mei_device *dev, u16 timeout)
5858
* mei_wd_host_init - connect to the watchdog client
5959
*
6060
* @dev: the device structure
61+
*
6162
* returns -ENENT if wd client cannot be found
6263
* -EIO if write has failed
6364
* 0 on success

0 commit comments

Comments
 (0)