Skip to content

Commit f827e53

Browse files
westeriandy-shev
authored andcommitted
platform/x86: intel_pmc_ipc: Make intel_pmc_ipc_raw_cmd() static
This function is not called outside of intel_pmc_ipc.c so we can make it static instead. Signed-off-by: Mika Westerberg <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Signed-off-by: Andy Shevchenko <[email protected]>
1 parent 3f751ba commit f827e53

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

arch/x86/include/asm/intel_pmc_ipc.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@
3131

3232
#if IS_ENABLED(CONFIG_INTEL_PMC_IPC)
3333

34-
int intel_pmc_ipc_raw_cmd(u32 cmd, u32 sub, u8 *in, u32 inlen,
35-
u32 *out, u32 outlen, u32 dptr, u32 sptr);
3634
int intel_pmc_ipc_command(u32 cmd, u32 sub, u8 *in, u32 inlen,
3735
u32 *out, u32 outlen);
3836
int intel_pmc_s0ix_counter_read(u64 *data);
@@ -42,12 +40,6 @@ int intel_pmc_gcr_write(u32 offset, u32 data);
4240

4341
#else
4442

45-
static inline int intel_pmc_ipc_raw_cmd(u32 cmd, u32 sub, u8 *in, u32 inlen,
46-
u32 *out, u32 outlen, u32 dptr, u32 sptr)
47-
{
48-
return -EINVAL;
49-
}
50-
5143
static inline int intel_pmc_ipc_command(u32 cmd, u32 sub, u8 *in, u32 inlen,
5244
u32 *out, u32 outlen)
5345
{

drivers/platform/x86/intel_pmc_ipc.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -435,8 +435,8 @@ static int intel_pmc_ipc_simple_command(int cmd, int sub)
435435
*
436436
* Return: an IPC error code or 0 on success.
437437
*/
438-
int intel_pmc_ipc_raw_cmd(u32 cmd, u32 sub, u8 *in, u32 inlen, u32 *out,
439-
u32 outlen, u32 dptr, u32 sptr)
438+
static int intel_pmc_ipc_raw_cmd(u32 cmd, u32 sub, u8 *in, u32 inlen, u32 *out,
439+
u32 outlen, u32 dptr, u32 sptr)
440440
{
441441
u32 wbuf[4] = { 0 };
442442
int ret;
@@ -468,7 +468,6 @@ int intel_pmc_ipc_raw_cmd(u32 cmd, u32 sub, u8 *in, u32 inlen, u32 *out,
468468

469469
return ret;
470470
}
471-
EXPORT_SYMBOL_GPL(intel_pmc_ipc_raw_cmd);
472471

473472
/**
474473
* intel_pmc_ipc_command() - IPC command with input/output data

0 commit comments

Comments
 (0)