aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMasanari Iida <standby24x7@gmail.com>2013-04-04 12:05:05 -0400
committerJiri Kosina <jkosina@suse.cz>2013-04-05 08:36:28 -0400
commit393b148f9d0e70cfcb0096985bb0f0742802929e (patch)
tree7594304ae3b9ef6ed85c62cad7543b8fe414bad8 /drivers
parent1051e9b33bbf550be52bdd674b519f3dc99f0dd9 (diff)
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/misc/mei/amthif.c6
-rw-r--r--drivers/misc/mei/client.c24
-rw-r--r--drivers/misc/mei/hbm.c9
-rw-r--r--drivers/misc/mei/hw-me.c8
-rw-r--r--drivers/misc/mei/interrupt.c6
-rw-r--r--drivers/misc/mei/pci-me.c1
-rw-r--r--drivers/misc/mei/wd.c1
7 files changed, 29 insertions, 26 deletions
diff --git a/drivers/misc/mei/amthif.c b/drivers/misc/mei/amthif.c
index c86d7e3839a4..1fbfd63e6837 100644
--- a/drivers/misc/mei/amthif.c
+++ b/drivers/misc/mei/amthif.c
@@ -60,7 +60,7 @@ void mei_amthif_reset_params(struct mei_device *dev)
60} 60}
61 61
62/** 62/**
63 * mei_amthif_host_init_ - mei initialization amthif client. 63 * mei_amthif_host_init - mei initialization amthif client.
64 * 64 *
65 * @dev: the device structure 65 * @dev: the device structure
66 * 66 *
@@ -433,7 +433,7 @@ unsigned int mei_amthif_poll(struct mei_device *dev,
433 433
434 434
435/** 435/**
436 * mei_amthif_irq_process_completed - processes completed iamthif operation. 436 * mei_amthif_irq_write_completed - processes completed iamthif operation.
437 * 437 *
438 * @dev: the device structure. 438 * @dev: the device structure.
439 * @slots: free slots. 439 * @slots: free slots.
@@ -703,7 +703,7 @@ static bool mei_clear_lists(struct mei_device *dev, struct file *file)
703/** 703/**
704* mei_amthif_release - the release function 704* mei_amthif_release - the release function
705* 705*
706* @inode: pointer to inode structure 706* @dev: device structure
707* @file: pointer to file structure 707* @file: pointer to file structure
708* 708*
709* returns 0 on success, <0 on error 709* returns 0 on success, <0 on error
diff --git a/drivers/misc/mei/client.c b/drivers/misc/mei/client.c
index 1569afe935de..4eba513b6be1 100644
--- a/drivers/misc/mei/client.c
+++ b/drivers/misc/mei/client.c
@@ -109,7 +109,7 @@ void mei_io_cb_free(struct mei_cl_cb *cb)
109 * mei_io_cb_init - allocate and initialize io callback 109 * mei_io_cb_init - allocate and initialize io callback
110 * 110 *
111 * @cl - mei client 111 * @cl - mei client
112 * @file: pointer to file structure 112 * @fp: pointer to file structure
113 * 113 *
114 * returns mei_cl_cb pointer or NULL; 114 * returns mei_cl_cb pointer or NULL;
115 */ 115 */
@@ -132,8 +132,8 @@ struct mei_cl_cb *mei_io_cb_init(struct mei_cl *cl, struct file *fp)
132/** 132/**
133 * mei_io_cb_alloc_req_buf - allocate request buffer 133 * mei_io_cb_alloc_req_buf - allocate request buffer
134 * 134 *
135 * @cb - io callback structure 135 * @cb: io callback structure
136 * @size: size of the buffer 136 * @length: size of the buffer
137 * 137 *
138 * returns 0 on success 138 * returns 0 on success
139 * -EINVAL if cb is NULL 139 * -EINVAL if cb is NULL
@@ -154,10 +154,10 @@ int mei_io_cb_alloc_req_buf(struct mei_cl_cb *cb, size_t length)
154 return 0; 154 return 0;
155} 155}
156/** 156/**
157 * mei_io_cb_alloc_req_buf - allocate respose buffer 157 * mei_io_cb_alloc_resp_buf - allocate respose buffer
158 * 158 *
159 * @cb - io callback structure 159 * @cb: io callback structure
160 * @size: size of the buffer 160 * @length: size of the buffer
161 * 161 *
162 * returns 0 on success 162 * returns 0 on success
163 * -EINVAL if cb is NULL 163 * -EINVAL if cb is NULL
@@ -183,7 +183,6 @@ int mei_io_cb_alloc_resp_buf(struct mei_cl_cb *cb, size_t length)
183/** 183/**
184 * mei_cl_flush_queues - flushes queue lists belonging to cl. 184 * mei_cl_flush_queues - flushes queue lists belonging to cl.
185 * 185 *
186 * @dev: the device structure
187 * @cl: host client 186 * @cl: host client
188 */ 187 */
189int mei_cl_flush_queues(struct mei_cl *cl) 188int mei_cl_flush_queues(struct mei_cl *cl)
@@ -243,7 +242,8 @@ struct mei_cl *mei_cl_allocate(struct mei_device *dev)
243/** 242/**
244 * mei_cl_find_read_cb - find this cl's callback in the read list 243 * mei_cl_find_read_cb - find this cl's callback in the read list
245 * 244 *
246 * @dev: device structure 245 * @cl: host client
246 *
247 * returns cb on success, NULL on error 247 * returns cb on success, NULL on error
248 */ 248 */
249struct mei_cl_cb *mei_cl_find_read_cb(struct mei_cl *cl) 249struct 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)
262 * 262 *
263 * @cl - host client 263 * @cl - host client
264 * @id - fixed host id or -1 for genereting one 264 * @id - fixed host id or -1 for genereting one
265 *
265 * returns 0 on success 266 * returns 0 on success
266 * -EINVAL on incorrect values 267 * -EINVAL on incorrect values
267 * -ENONET if client not found 268 * -ENONET if client not found
@@ -301,7 +302,7 @@ int mei_cl_link(struct mei_cl *cl, int id)
301/** 302/**
302 * mei_cl_unlink - remove me_cl from the list 303 * mei_cl_unlink - remove me_cl from the list
303 * 304 *
304 * @dev: the device structure 305 * @cl: host client
305 */ 306 */
306int mei_cl_unlink(struct mei_cl *cl) 307int mei_cl_unlink(struct mei_cl *cl)
307{ 308{
@@ -534,7 +535,6 @@ out:
534/** 535/**
535 * mei_cl_flow_ctrl_creds - checks flow_control credits for cl. 536 * mei_cl_flow_ctrl_creds - checks flow_control credits for cl.
536 * 537 *
537 * @dev: the device structure
538 * @cl: private data of the file object 538 * @cl: private data of the file object
539 * 539 *
540 * returns 1 if mei_flow_ctrl_creds >0, 0 - otherwise. 540 * returns 1 if mei_flow_ctrl_creds >0, 0 - otherwise.
@@ -575,8 +575,8 @@ int mei_cl_flow_ctrl_creds(struct mei_cl *cl)
575/** 575/**
576 * mei_cl_flow_ctrl_reduce - reduces flow_control. 576 * mei_cl_flow_ctrl_reduce - reduces flow_control.
577 * 577 *
578 * @dev: the device structure
579 * @cl: private data of the file object 578 * @cl: private data of the file object
579 *
580 * @returns 580 * @returns
581 * 0 on success 581 * 0 on success
582 * -ENOENT when me client is not found 582 * -ENOENT when me client is not found
@@ -614,7 +614,7 @@ int mei_cl_flow_ctrl_reduce(struct mei_cl *cl)
614} 614}
615 615
616/** 616/**
617 * mei_cl_start_read - the start read client message function. 617 * mei_cl_read_start - the start read client message function.
618 * 618 *
619 * @cl: host client 619 * @cl: host client
620 * 620 *
diff --git a/drivers/misc/mei/hbm.c b/drivers/misc/mei/hbm.c
index fb9e63ba3bb1..4465d3f10060 100644
--- a/drivers/misc/mei/hbm.c
+++ b/drivers/misc/mei/hbm.c
@@ -62,6 +62,7 @@ static void mei_hbm_me_cl_allocate(struct mei_device *dev)
62 62
63/** 63/**
64 * mei_hbm_cl_hdr - construct client hbm header 64 * mei_hbm_cl_hdr - construct client hbm header
65 *
65 * @cl: - client 66 * @cl: - client
66 * @hbm_cmd: host bus message command 67 * @hbm_cmd: host bus message command
67 * @buf: buffer for cl header 68 * @buf: buffer for cl header
@@ -184,7 +185,7 @@ static void mei_hbm_enum_clients_req(struct mei_device *dev)
184} 185}
185 186
186/** 187/**
187 * mei_hbm_prop_requsest - request property for a single client 188 * mei_hbm_prop_req - request property for a single client
188 * 189 *
189 * @dev: the device structure 190 * @dev: the device structure
190 * 191 *
@@ -283,9 +284,9 @@ int mei_hbm_cl_flow_control_req(struct mei_device *dev, struct mei_cl *cl)
283} 284}
284 285
285/** 286/**
286 * add_single_flow_creds - adds single buffer credentials. 287 * mei_hbm_add_single_flow_creds - adds single buffer credentials.
287 * 288 *
288 * @file: private data ot the file object. 289 * @dev: the device structure
289 * @flow: flow control. 290 * @flow: flow control.
290 */ 291 */
291static void mei_hbm_add_single_flow_creds(struct mei_device *dev, 292static 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,
477 478
478 479
479/** 480/**
480 * mei_client_disconnect_request - disconnect request initiated by me 481 * mei_hbm_fw_disconnect_req - disconnect request initiated by me
481 * host sends disoconnect response 482 * host sends disoconnect response
482 * 483 *
483 * @dev: the device structure. 484 * @dev: the device structure.
diff --git a/drivers/misc/mei/hw-me.c b/drivers/misc/mei/hw-me.c
index 45ea7185c003..c31f7a47f5b6 100644
--- a/drivers/misc/mei/hw-me.c
+++ b/drivers/misc/mei/hw-me.c
@@ -103,7 +103,7 @@ static inline void mei_hcsr_set(struct mei_me_hw *hw, u32 hcsr)
103 103
104 104
105/** 105/**
106 * me_hw_config - configure hw dependent settings 106 * mei_me_hw_config - configure hw dependent settings
107 * 107 *
108 * @dev: mei device 108 * @dev: mei device
109 */ 109 */
@@ -155,7 +155,7 @@ static void mei_me_intr_disable(struct mei_device *dev)
155 * mei_me_hw_reset - resets fw via mei csr register. 155 * mei_me_hw_reset - resets fw via mei csr register.
156 * 156 *
157 * @dev: the device structure 157 * @dev: the device structure
158 * @interrupts_enabled: if interrupt should be enabled after reset. 158 * @intr_enable: if interrupt should be enabled after reset.
159 */ 159 */
160static void mei_me_hw_reset(struct mei_device *dev, bool intr_enable) 160static void mei_me_hw_reset(struct mei_device *dev, bool intr_enable)
161{ 161{
@@ -243,7 +243,7 @@ static unsigned char mei_hbuf_filled_slots(struct mei_device *dev)
243} 243}
244 244
245/** 245/**
246 * mei_hbuf_is_empty - checks if host buffer is empty. 246 * mei_me_hbuf_is_empty - checks if host buffer is empty.
247 * 247 *
248 * @dev: the device structure 248 * @dev: the device structure
249 * 249 *
@@ -543,7 +543,7 @@ static const struct mei_hw_ops mei_me_hw_ops = {
543}; 543};
544 544
545/** 545/**
546 * init_mei_device - allocates and initializes the mei device structure 546 * mei_me_dev_init - allocates and initializes the mei device structure
547 * 547 *
548 * @pdev: The pci device structure 548 * @pdev: The pci device structure
549 * 549 *
diff --git a/drivers/misc/mei/interrupt.c b/drivers/misc/mei/interrupt.c
index 3535b2676c97..8a649d784521 100644
--- a/drivers/misc/mei/interrupt.c
+++ b/drivers/misc/mei/interrupt.c
@@ -30,7 +30,7 @@
30 30
31 31
32/** 32/**
33 * mei_complete_handler - processes completed operation. 33 * mei_irq_complete_handler - processes completed operation.
34 * 34 *
35 * @cl: private data of the file object. 35 * @cl: private data of the file object.
36 * @cb_pos: callback block. 36 * @cb_pos: callback block.
@@ -177,7 +177,7 @@ static int _mei_irq_thread_close(struct mei_device *dev, s32 *slots,
177 177
178 178
179/** 179/**
180 * _mei_hb_read - processes read related operation. 180 * _mei_irq_thread_read - processes read related operation.
181 * 181 *
182 * @dev: the device structure. 182 * @dev: the device structure.
183 * @slots: free slots. 183 * @slots: free slots.
@@ -310,7 +310,7 @@ static int mei_irq_thread_write_complete(struct mei_device *dev, s32 *slots,
310} 310}
311 311
312/** 312/**
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
314 * handle the read processing. 314 * handle the read processing.
315 * 315 *
316 * @dev: the device structure 316 * @dev: the device structure
diff --git a/drivers/misc/mei/pci-me.c b/drivers/misc/mei/pci-me.c
index b40ec0601ab0..df1750651bf8 100644
--- a/drivers/misc/mei/pci-me.c
+++ b/drivers/misc/mei/pci-me.c
@@ -92,6 +92,7 @@ static DEFINE_MUTEX(mei_mutex);
92 92
93/** 93/**
94 * mei_quirk_probe - probe for devices that doesn't valid ME interface 94 * mei_quirk_probe - probe for devices that doesn't valid ME interface
95 *
95 * @pdev: PCI device structure 96 * @pdev: PCI device structure
96 * @ent: entry into pci_device_table 97 * @ent: entry into pci_device_table
97 * 98 *
diff --git a/drivers/misc/mei/wd.c b/drivers/misc/mei/wd.c
index 2413247fc392..3effd5f20bf5 100644
--- a/drivers/misc/mei/wd.c
+++ b/drivers/misc/mei/wd.c
@@ -58,6 +58,7 @@ static void mei_wd_set_start_timeout(struct mei_device *dev, u16 timeout)
58 * mei_wd_host_init - connect to the watchdog client 58 * mei_wd_host_init - connect to the watchdog client
59 * 59 *
60 * @dev: the device structure 60 * @dev: the device structure
61 *
61 * returns -ENENT if wd client cannot be found 62 * returns -ENENT if wd client cannot be found
62 * -EIO if write has failed 63 * -EIO if write has failed
63 * 0 on success 64 * 0 on success