aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/sh/maple/maple.c27
1 files changed, 14 insertions, 13 deletions
diff --git a/drivers/sh/maple/maple.c b/drivers/sh/maple/maple.c
index be77a39f224c..d1812d32f47d 100644
--- a/drivers/sh/maple/maple.c
+++ b/drivers/sh/maple/maple.c
@@ -147,13 +147,13 @@ static void maple_release_device(struct device *dev)
147 kfree(mdev); 147 kfree(mdev);
148} 148}
149 149
150/* 150/**
151 * maple_add_packet - add a single instruction to the queue 151 * maple_add_packet - add a single instruction to the queue
152 * @mdev - maple device 152 * @mdev: maple device
153 * @function - function on device being queried 153 * @function: function on device being queried
154 * @command - maple command to add 154 * @command: maple command to add
155 * @length - length of command string (in 32 bit words) 155 * @length: length of command string (in 32 bit words)
156 * @data - remainder of command string 156 * @data: remainder of command string
157 */ 157 */
158int maple_add_packet(struct maple_device *mdev, u32 function, u32 command, 158int maple_add_packet(struct maple_device *mdev, u32 function, u32 command,
159 size_t length, void *data) 159 size_t length, void *data)
@@ -194,14 +194,15 @@ out:
194} 194}
195EXPORT_SYMBOL_GPL(maple_add_packet); 195EXPORT_SYMBOL_GPL(maple_add_packet);
196 196
197/* 197/**
198 * maple_add_packet_sleeps - add a single instruction to the queue 198 * maple_add_packet_sleeps - add a single instruction to the queue
199 * - waits for lock to be free 199 * @mdev: maple device
200 * @mdev - maple device 200 * @function: function on device being queried
201 * @function - function on device being queried 201 * @command: maple command to add
202 * @command - maple command to add 202 * @length: length of command string (in 32 bit words)
203 * @length - length of command string (in 32 bit words) 203 * @data: remainder of command string
204 * @data - remainder of command string 204 *
205 * Same as maple_add_packet(), but waits for the lock to become free.
205 */ 206 */
206int maple_add_packet_sleeps(struct maple_device *mdev, u32 function, 207int maple_add_packet_sleeps(struct maple_device *mdev, u32 function,
207 u32 command, size_t length, void *data) 208 u32 command, size_t length, void *data)