aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/mei
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2013-04-30 12:36:50 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2013-04-30 12:36:50 -0400
commit5d434fcb255dec99189f1c58a06e4f56e12bf77d (patch)
tree734289dc85074903d9e636a935d43414746e222c /drivers/misc/mei
parent5a5a1bf099d6942399ea0b34a62e5f0bc4c5c36e (diff)
parent071361d3473ebb8142907470ff12d59c59f6be72 (diff)
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial
Pull trivial tree updates from Jiri Kosina: "Usual stuff, mostly comment fixes, typo fixes, printk fixes and small code cleanups" * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (45 commits) mm: Convert print_symbol to %pSR gfs2: Convert print_symbol to %pSR m32r: Convert print_symbol to %pSR iostats.txt: add easy-to-find description for field 6 x86 cmpxchg.h: fix wrong comment treewide: Fix typo in printk and comments doc: devicetree: Fix various typos docbook: fix 8250 naming in device-drivers pata_pdc2027x: Fix compiler warning treewide: Fix typo in printks mei: Fix comments in drivers/misc/mei treewide: Fix typos in kernel messages pm44xx: Fix comment for "CONFIG_CPU_IDLE" doc: Fix typo "CONFIG_CGROUP_CGROUP_MEMCG_SWAP" mmzone: correct "pags" to "pages" in comment. kernel-parameters: remove outdated 'noresidual' parameter Remove spurious _H suffixes from ifdef comments sound: Remove stray pluses from Kconfig file radio-shark: Fix printk "CONFIG_LED_CLASS" doc: put proper reference to CONFIG_MODULE_SIG_ENFORCE ...
Diffstat (limited to 'drivers/misc/mei')
-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.c4
-rw-r--r--drivers/misc/mei/pci-me.c1
-rw-r--r--drivers/misc/mei/wd.c1
7 files changed, 28 insertions, 25 deletions
diff --git a/drivers/misc/mei/amthif.c b/drivers/misc/mei/amthif.c
index 31a6212cb8b1..b3e50984d2c8 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.
@@ -704,7 +704,7 @@ static bool mei_clear_lists(struct mei_device *dev, struct file *file)
704/** 704/**
705* mei_amthif_release - the release function 705* mei_amthif_release - the release function
706* 706*
707* @inode: pointer to inode structure 707* @dev: device structure
708* @file: pointer to file structure 708* @file: pointer to file structure
709* 709*
710* returns 0 on success, <0 on error 710* returns 0 on success, <0 on error
diff --git a/drivers/misc/mei/client.c b/drivers/misc/mei/client.c
index 71892745e2e8..e310ca6ed1a3 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)
@@ -244,7 +243,8 @@ struct mei_cl *mei_cl_allocate(struct mei_device *dev)
244/** 243/**
245 * mei_cl_find_read_cb - find this cl's callback in the read list 244 * mei_cl_find_read_cb - find this cl's callback in the read list
246 * 245 *
247 * @dev: device structure 246 * @cl: host client
247 *
248 * returns cb on success, NULL on error 248 * returns cb on success, NULL on error
249 */ 249 */
250struct mei_cl_cb *mei_cl_find_read_cb(struct mei_cl *cl) 250struct mei_cl_cb *mei_cl_find_read_cb(struct mei_cl *cl)
@@ -263,6 +263,7 @@ struct mei_cl_cb *mei_cl_find_read_cb(struct mei_cl *cl)
263 * 263 *
264 * @cl - host client 264 * @cl - host client
265 * @id - fixed host id or -1 for genereting one 265 * @id - fixed host id or -1 for genereting one
266 *
266 * returns 0 on success 267 * returns 0 on success
267 * -EINVAL on incorrect values 268 * -EINVAL on incorrect values
268 * -ENONET if client not found 269 * -ENONET if client not found
@@ -302,7 +303,7 @@ int mei_cl_link(struct mei_cl *cl, int id)
302/** 303/**
303 * mei_cl_unlink - remove me_cl from the list 304 * mei_cl_unlink - remove me_cl from the list
304 * 305 *
305 * @dev: the device structure 306 * @cl: host client
306 */ 307 */
307int mei_cl_unlink(struct mei_cl *cl) 308int mei_cl_unlink(struct mei_cl *cl)
308{ 309{
@@ -538,7 +539,6 @@ out:
538/** 539/**
539 * mei_cl_flow_ctrl_creds - checks flow_control credits for cl. 540 * mei_cl_flow_ctrl_creds - checks flow_control credits for cl.
540 * 541 *
541 * @dev: the device structure
542 * @cl: private data of the file object 542 * @cl: private data of the file object
543 * 543 *
544 * returns 1 if mei_flow_ctrl_creds >0, 0 - otherwise. 544 * returns 1 if mei_flow_ctrl_creds >0, 0 - otherwise.
@@ -579,8 +579,8 @@ int mei_cl_flow_ctrl_creds(struct mei_cl *cl)
579/** 579/**
580 * mei_cl_flow_ctrl_reduce - reduces flow_control. 580 * mei_cl_flow_ctrl_reduce - reduces flow_control.
581 * 581 *
582 * @dev: the device structure
583 * @cl: private data of the file object 582 * @cl: private data of the file object
583 *
584 * @returns 584 * @returns
585 * 0 on success 585 * 0 on success
586 * -ENOENT when me client is not found 586 * -ENOENT when me client is not found
@@ -618,7 +618,7 @@ int mei_cl_flow_ctrl_reduce(struct mei_cl *cl)
618} 618}
619 619
620/** 620/**
621 * mei_cl_start_read - the start read client message function. 621 * mei_cl_read_start - the start read client message function.
622 * 622 *
623 * @cl: host client 623 * @cl: host client
624 * 624 *
diff --git a/drivers/misc/mei/hbm.c b/drivers/misc/mei/hbm.c
index db605f5cf187..6916045166eb 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
@@ -206,7 +207,7 @@ static void mei_hbm_enum_clients_req(struct mei_device *dev)
206} 207}
207 208
208/** 209/**
209 * mei_hbm_prop_requsest - request property for a single client 210 * mei_hbm_prop_req - request property for a single client
210 * 211 *
211 * @dev: the device structure 212 * @dev: the device structure
212 * 213 *
@@ -306,9 +307,9 @@ int mei_hbm_cl_flow_control_req(struct mei_device *dev, struct mei_cl *cl)
306} 307}
307 308
308/** 309/**
309 * add_single_flow_creds - adds single buffer credentials. 310 * mei_hbm_add_single_flow_creds - adds single buffer credentials.
310 * 311 *
311 * @file: private data ot the file object. 312 * @dev: the device structure
312 * @flow: flow control. 313 * @flow: flow control.
313 */ 314 */
314static void mei_hbm_add_single_flow_creds(struct mei_device *dev, 315static void mei_hbm_add_single_flow_creds(struct mei_device *dev,
@@ -500,7 +501,7 @@ static void mei_hbm_cl_connect_res(struct mei_device *dev,
500 501
501 502
502/** 503/**
503 * mei_client_disconnect_request - disconnect request initiated by me 504 * mei_hbm_fw_disconnect_req - disconnect request initiated by me
504 * host sends disoconnect response 505 * host sends disoconnect response
505 * 506 *
506 * @dev: the device structure. 507 * @dev: the device structure.
diff --git a/drivers/misc/mei/hw-me.c b/drivers/misc/mei/hw-me.c
index fc032270916a..822170f00348 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 */
@@ -169,7 +169,7 @@ static void mei_me_hw_reset_release(struct mei_device *dev)
169 * mei_me_hw_reset - resets fw via mei csr register. 169 * mei_me_hw_reset - resets fw via mei csr register.
170 * 170 *
171 * @dev: the device structure 171 * @dev: the device structure
172 * @interrupts_enabled: if interrupt should be enabled after reset. 172 * @intr_enable: if interrupt should be enabled after reset.
173 */ 173 */
174static void mei_me_hw_reset(struct mei_device *dev, bool intr_enable) 174static void mei_me_hw_reset(struct mei_device *dev, bool intr_enable)
175{ 175{
@@ -285,7 +285,7 @@ static unsigned char mei_hbuf_filled_slots(struct mei_device *dev)
285} 285}
286 286
287/** 287/**
288 * mei_hbuf_is_empty - checks if host buffer is empty. 288 * mei_me_hbuf_is_empty - checks if host buffer is empty.
289 * 289 *
290 * @dev: the device structure 290 * @dev: the device structure
291 * 291 *
@@ -554,7 +554,7 @@ static const struct mei_hw_ops mei_me_hw_ops = {
554}; 554};
555 555
556/** 556/**
557 * init_mei_device - allocates and initializes the mei device structure 557 * mei_me_dev_init - allocates and initializes the mei device structure
558 * 558 *
559 * @pdev: The pci device structure 559 * @pdev: The pci device structure
560 * 560 *
diff --git a/drivers/misc/mei/interrupt.c b/drivers/misc/mei/interrupt.c
index 1473cfdbc426..2ad736989410 100644
--- a/drivers/misc/mei/interrupt.c
+++ b/drivers/misc/mei/interrupt.c
@@ -230,7 +230,7 @@ static int _mei_irq_thread_close(struct mei_device *dev, s32 *slots,
230 230
231 231
232/** 232/**
233 * _mei_hb_read - processes read related operation. 233 * _mei_irq_thread_read - processes read related operation.
234 * 234 *
235 * @dev: the device structure. 235 * @dev: the device structure.
236 * @slots: free slots. 236 * @slots: free slots.
@@ -369,7 +369,7 @@ static int mei_irq_thread_write_complete(struct mei_device *dev, s32 *slots,
369} 369}
370 370
371/** 371/**
372 * mei_irq_thread_read_handler - bottom half read routine after ISR to 372 * mei_irq_read_handler - bottom half read routine after ISR to
373 * handle the read processing. 373 * handle the read processing.
374 * 374 *
375 * @dev: the device structure 375 * @dev: the device structure
diff --git a/drivers/misc/mei/pci-me.c b/drivers/misc/mei/pci-me.c
index 88aec6a90ff4..a727464e9c3f 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 eb3f05c8d7d0..6251a4ee7067 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