Skip to content

Commit 0294100

Browse files
qipengzhadvhart
authored andcommitted
intel_pmc_ipc: Update kerneldoc formatting
Update kerneldoc formatting per Documentation/kernel-dec-nano-HOWTO.txt. Signed-off-by: qipeng.zha <qipeng.zha@intel.com> Signed-off-by: Darren Hart <dvhart@linux.intel.com>
1 parent 22565ba commit 0294100

File tree

2 files changed

+35
-49
lines changed

2 files changed

+35
-49
lines changed

arch/x86/include/asm/intel_pmc_ipc.h

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -25,36 +25,9 @@
2525

2626
#if IS_ENABLED(CONFIG_INTEL_PMC_IPC)
2727

28-
/*
29-
* intel_pmc_ipc_simple_command
30-
* @cmd: command
31-
* @sub: sub type
32-
*/
3328
int intel_pmc_ipc_simple_command(int cmd, int sub);
34-
35-
/*
36-
* intel_pmc_ipc_raw_cmd
37-
* @cmd: command
38-
* @sub: sub type
39-
* @in: input data
40-
* @inlen: input length in bytes
41-
* @out: output data
42-
* @outlen: output length in dwords
43-
* @sptr: data writing to SPTR register
44-
* @dptr: data writing to DPTR register
45-
*/
4629
int intel_pmc_ipc_raw_cmd(u32 cmd, u32 sub, u8 *in, u32 inlen,
4730
u32 *out, u32 outlen, u32 dptr, u32 sptr);
48-
49-
/*
50-
* intel_pmc_ipc_command
51-
* @cmd: command
52-
* @sub: sub type
53-
* @in: input data
54-
* @inlen: input length in bytes
55-
* @out: output data
56-
* @outlen: output length in dwords
57-
*/
5831
int intel_pmc_ipc_command(u32 cmd, u32 sub, u8 *in, u32 inlen,
5932
u32 *out, u32 outlen);
6033

drivers/platform/x86/intel_pmc_ipc.c

Lines changed: 35 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -210,10 +210,15 @@ static int intel_pmc_ipc_check_status(void)
210210
return ret;
211211
}
212212

213-
/*
214-
* intel_pmc_ipc_simple_command
215-
* @cmd: command
216-
* @sub: sub type
213+
/**
214+
* intel_pmc_ipc_simple_command() - Simple IPC command
215+
* @cmd: IPC command code.
216+
* @sub: IPC command sub type.
217+
*
218+
* Send a simple IPC command to PMC when don't need to specify
219+
* input/output data and source/dest pointers.
220+
*
221+
* Return: an IPC error code or 0 on success.
217222
*/
218223
int intel_pmc_ipc_simple_command(int cmd, int sub)
219224
{
@@ -232,16 +237,20 @@ int intel_pmc_ipc_simple_command(int cmd, int sub)
232237
}
233238
EXPORT_SYMBOL_GPL(intel_pmc_ipc_simple_command);
234239

235-
/*
236-
* intel_pmc_ipc_raw_cmd
237-
* @cmd: command
238-
* @sub: sub type
239-
* @in: input data
240-
* @inlen: input length in bytes
241-
* @out: output data
242-
* @outlen: output length in dwords
243-
* @sptr: data writing to SPTR register
244-
* @dptr: data writing to DPTR register
240+
/**
241+
* intel_pmc_ipc_raw_cmd() - IPC command with data and pointers
242+
* @cmd: IPC command code.
243+
* @sub: IPC command sub type.
244+
* @in: input data of this IPC command.
245+
* @inlen: input data length in bytes.
246+
* @out: output data of this IPC command.
247+
* @outlen: output data length in dwords.
248+
* @sptr: data writing to SPTR register.
249+
* @dptr: data writing to DPTR register.
250+
*
251+
* Send an IPC command to PMC with input/output data and source/dest pointers.
252+
*
253+
* Return: an IPC error code or 0 on success.
245254
*/
246255
int intel_pmc_ipc_raw_cmd(u32 cmd, u32 sub, u8 *in, u32 inlen, u32 *out,
247256
u32 outlen, u32 dptr, u32 sptr)
@@ -278,14 +287,18 @@ int intel_pmc_ipc_raw_cmd(u32 cmd, u32 sub, u8 *in, u32 inlen, u32 *out,
278287
}
279288
EXPORT_SYMBOL_GPL(intel_pmc_ipc_raw_cmd);
280289

281-
/*
282-
* intel_pmc_ipc_command
283-
* @cmd: command
284-
* @sub: sub type
285-
* @in: input data
286-
* @inlen: input length in bytes
287-
* @out: output data
288-
* @outlen: output length in dwords
290+
/**
291+
* intel_pmc_ipc_command() - IPC command with input/output data
292+
* @cmd: IPC command code.
293+
* @sub: IPC command sub type.
294+
* @in: input data of this IPC command.
295+
* @inlen: input data length in bytes.
296+
* @out: output data of this IPC command.
297+
* @outlen: output data length in dwords.
298+
*
299+
* Send an IPC command to PMC with input/output data.
300+
*
301+
* Return: an IPC error code or 0 on success.
289302
*/
290303
int intel_pmc_ipc_command(u32 cmd, u32 sub, u8 *in, u32 inlen,
291304
u32 *out, u32 outlen)

0 commit comments

Comments
 (0)