Skip to content

Commit 8b23656

Browse files
westeriandy-shev
authored andcommitted
platform/x86: intel_scu_ipc: Reformat kernel-doc comments of exported functions
Format kernel-doc comments of the exported functions to follow the typical format that does not have tab indentation. Also capitalize parameter descriptions and add a missing period. No functional changes intended. Signed-off-by: Mika Westerberg <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Signed-off-by: Andy Shevchenko <[email protected]>
1 parent 4907898 commit 8b23656

File tree

1 file changed

+55
-57
lines changed

1 file changed

+55
-57
lines changed

drivers/platform/x86/intel_scu_ipc.c

Lines changed: 55 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -222,14 +222,14 @@ static int pwr_reg_rdwr(u16 *addr, u8 *data, u32 count, u32 op, u32 id)
222222
}
223223

224224
/**
225-
* intel_scu_ipc_ioread8 - read a word via the SCU
226-
* @addr: register on SCU
227-
* @data: return pointer for read byte
225+
* intel_scu_ipc_ioread8 - read a word via the SCU
226+
* @addr: Register on SCU
227+
* @data: Return pointer for read byte
228228
*
229-
* Read a single register. Returns 0 on success or an error code. All
230-
* locking between SCU accesses is handled for the caller.
229+
* Read a single register. Returns %0 on success or an error code. All
230+
* locking between SCU accesses is handled for the caller.
231231
*
232-
* This function may sleep.
232+
* This function may sleep.
233233
*/
234234
int intel_scu_ipc_ioread8(u16 addr, u8 *data)
235235
{
@@ -238,14 +238,14 @@ int intel_scu_ipc_ioread8(u16 addr, u8 *data)
238238
EXPORT_SYMBOL(intel_scu_ipc_ioread8);
239239

240240
/**
241-
* intel_scu_ipc_iowrite8 - write a byte via the SCU
242-
* @addr: register on SCU
243-
* @data: byte to write
241+
* intel_scu_ipc_iowrite8 - write a byte via the SCU
242+
* @addr: Register on SCU
243+
* @data: Byte to write
244244
*
245-
* Write a single register. Returns 0 on success or an error code. All
246-
* locking between SCU accesses is handled for the caller.
245+
* Write a single register. Returns %0 on success or an error code. All
246+
* locking between SCU accesses is handled for the caller.
247247
*
248-
* This function may sleep.
248+
* This function may sleep.
249249
*/
250250
int intel_scu_ipc_iowrite8(u16 addr, u8 data)
251251
{
@@ -254,17 +254,17 @@ int intel_scu_ipc_iowrite8(u16 addr, u8 data)
254254
EXPORT_SYMBOL(intel_scu_ipc_iowrite8);
255255

256256
/**
257-
* intel_scu_ipc_readvv - read a set of registers
258-
* @addr: register list
259-
* @data: bytes to return
260-
* @len: length of array
257+
* intel_scu_ipc_readvv - read a set of registers
258+
* @addr: Register list
259+
* @data: Bytes to return
260+
* @len: Length of array
261261
*
262-
* Read registers. Returns 0 on success or an error code. All
263-
* locking between SCU accesses is handled for the caller.
262+
* Read registers. Returns %0 on success or an error code. All locking
263+
* between SCU accesses is handled for the caller.
264264
*
265-
* The largest array length permitted by the hardware is 5 items.
265+
* The largest array length permitted by the hardware is 5 items.
266266
*
267-
* This function may sleep.
267+
* This function may sleep.
268268
*/
269269
int intel_scu_ipc_readv(u16 *addr, u8 *data, int len)
270270
{
@@ -273,18 +273,17 @@ int intel_scu_ipc_readv(u16 *addr, u8 *data, int len)
273273
EXPORT_SYMBOL(intel_scu_ipc_readv);
274274

275275
/**
276-
* intel_scu_ipc_writev - write a set of registers
277-
* @addr: register list
278-
* @data: bytes to write
279-
* @len: length of array
276+
* intel_scu_ipc_writev - write a set of registers
277+
* @addr: Register list
278+
* @data: Bytes to write
279+
* @len: Length of array
280280
*
281-
* Write registers. Returns 0 on success or an error code. All
282-
* locking between SCU accesses is handled for the caller.
281+
* Write registers. Returns %0 on success or an error code. All locking
282+
* between SCU accesses is handled for the caller.
283283
*
284-
* The largest array length permitted by the hardware is 5 items.
285-
*
286-
* This function may sleep.
284+
* The largest array length permitted by the hardware is 5 items.
287285
*
286+
* This function may sleep.
288287
*/
289288
int intel_scu_ipc_writev(u16 *addr, u8 *data, int len)
290289
{
@@ -293,19 +292,18 @@ int intel_scu_ipc_writev(u16 *addr, u8 *data, int len)
293292
EXPORT_SYMBOL(intel_scu_ipc_writev);
294293

295294
/**
296-
* intel_scu_ipc_update_register - r/m/w a register
297-
* @addr: register address
298-
* @bits: bits to update
299-
* @mask: mask of bits to update
295+
* intel_scu_ipc_update_register - r/m/w a register
296+
* @addr: Register address
297+
* @bits: Bits to update
298+
* @mask: Mask of bits to update
300299
*
301-
* Read-modify-write power control unit register. The first data argument
302-
* must be register value and second is mask value
303-
* mask is a bitmap that indicates which bits to update.
304-
* 0 = masked. Don't modify this bit, 1 = modify this bit.
305-
* returns 0 on success or an error code.
300+
* Read-modify-write power control unit register. The first data argument
301+
* must be register value and second is mask value mask is a bitmap that
302+
* indicates which bits to update. %0 = masked. Don't modify this bit, %1 =
303+
* modify this bit. returns %0 on success or an error code.
306304
*
307-
* This function may sleep. Locking between SCU accesses is handled
308-
* for the caller.
305+
* This function may sleep. Locking between SCU accesses is handled
306+
* for the caller.
309307
*/
310308
int intel_scu_ipc_update_register(u16 addr, u8 bits, u8 mask)
311309
{
@@ -315,16 +313,16 @@ int intel_scu_ipc_update_register(u16 addr, u8 bits, u8 mask)
315313
EXPORT_SYMBOL(intel_scu_ipc_update_register);
316314

317315
/**
318-
* intel_scu_ipc_simple_command - send a simple command
319-
* @cmd: command
320-
* @sub: sub type
316+
* intel_scu_ipc_simple_command - send a simple command
317+
* @cmd: Command
318+
* @sub: Sub type
321319
*
322-
* Issue a simple command to the SCU. Do not use this interface if
323-
* you must then access data as any data values may be overwritten
324-
* by another SCU access by the time this function returns.
320+
* Issue a simple command to the SCU. Do not use this interface if you must
321+
* then access data as any data values may be overwritten by another SCU
322+
* access by the time this function returns.
325323
*
326-
* This function may sleep. Locking for SCU accesses is handled for
327-
* the caller.
324+
* This function may sleep. Locking for SCU accesses is handled for the
325+
* caller.
328326
*/
329327
int intel_scu_ipc_simple_command(int cmd, int sub)
330328
{
@@ -344,16 +342,16 @@ int intel_scu_ipc_simple_command(int cmd, int sub)
344342
EXPORT_SYMBOL(intel_scu_ipc_simple_command);
345343

346344
/**
347-
* intel_scu_ipc_command - command with data
348-
* @cmd: command
349-
* @sub: sub type
350-
* @in: input data
351-
* @inlen: input length in dwords
352-
* @out: output data
353-
* @outlein: output length in dwords
345+
* intel_scu_ipc_command - command with data
346+
* @cmd: Command
347+
* @sub: Sub type
348+
* @in: Input data
349+
* @inlen: Input length in dwords
350+
* @out: Output data
351+
* @outlen: Output length in dwords
354352
*
355-
* Issue a command to the SCU which involves data transfers. Do the
356-
* data copies under the lock but leave it for the caller to interpret
353+
* Issue a command to the SCU which involves data transfers. Do the
354+
* data copies under the lock but leave it for the caller to interpret.
357355
*/
358356
int intel_scu_ipc_command(int cmd, int sub, u32 *in, int inlen,
359357
u32 *out, int outlen)

0 commit comments

Comments
 (0)