mirror of
https://github.com/torvalds/linux.git
synced 2024-12-30 14:52:05 +00:00
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 <mika.westerberg@linux.intel.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
This commit is contained in:
parent
3f751ba584
commit
f827e5300d
@ -31,8 +31,6 @@
|
|||||||
|
|
||||||
#if IS_ENABLED(CONFIG_INTEL_PMC_IPC)
|
#if IS_ENABLED(CONFIG_INTEL_PMC_IPC)
|
||||||
|
|
||||||
int intel_pmc_ipc_raw_cmd(u32 cmd, u32 sub, u8 *in, u32 inlen,
|
|
||||||
u32 *out, u32 outlen, u32 dptr, u32 sptr);
|
|
||||||
int intel_pmc_ipc_command(u32 cmd, u32 sub, u8 *in, u32 inlen,
|
int intel_pmc_ipc_command(u32 cmd, u32 sub, u8 *in, u32 inlen,
|
||||||
u32 *out, u32 outlen);
|
u32 *out, u32 outlen);
|
||||||
int intel_pmc_s0ix_counter_read(u64 *data);
|
int intel_pmc_s0ix_counter_read(u64 *data);
|
||||||
@ -42,12 +40,6 @@ int intel_pmc_gcr_write(u32 offset, u32 data);
|
|||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
static inline int intel_pmc_ipc_raw_cmd(u32 cmd, u32 sub, u8 *in, u32 inlen,
|
|
||||||
u32 *out, u32 outlen, u32 dptr, u32 sptr)
|
|
||||||
{
|
|
||||||
return -EINVAL;
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline int intel_pmc_ipc_command(u32 cmd, u32 sub, u8 *in, u32 inlen,
|
static inline int intel_pmc_ipc_command(u32 cmd, u32 sub, u8 *in, u32 inlen,
|
||||||
u32 *out, u32 outlen)
|
u32 *out, u32 outlen)
|
||||||
{
|
{
|
||||||
|
@ -435,7 +435,7 @@ static int intel_pmc_ipc_simple_command(int cmd, int sub)
|
|||||||
*
|
*
|
||||||
* Return: an IPC error code or 0 on success.
|
* Return: an IPC error code or 0 on success.
|
||||||
*/
|
*/
|
||||||
int intel_pmc_ipc_raw_cmd(u32 cmd, u32 sub, u8 *in, u32 inlen, u32 *out,
|
static int intel_pmc_ipc_raw_cmd(u32 cmd, u32 sub, u8 *in, u32 inlen, u32 *out,
|
||||||
u32 outlen, u32 dptr, u32 sptr)
|
u32 outlen, u32 dptr, u32 sptr)
|
||||||
{
|
{
|
||||||
u32 wbuf[4] = { 0 };
|
u32 wbuf[4] = { 0 };
|
||||||
@ -468,7 +468,6 @@ int intel_pmc_ipc_raw_cmd(u32 cmd, u32 sub, u8 *in, u32 inlen, u32 *out,
|
|||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(intel_pmc_ipc_raw_cmd);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* intel_pmc_ipc_command() - IPC command with input/output data
|
* intel_pmc_ipc_command() - IPC command with input/output data
|
||||||
|
Loading…
Reference in New Issue
Block a user