diff options
author | Sreedhara DS <sreedhara.ds@intel.com> | 2010-10-22 10:43:55 -0400 |
---|---|---|
committer | Matthew Garrett <mjg@redhat.com> | 2011-01-07 17:03:40 -0500 |
commit | 5369c02d951afc72d68f5f85089160a63d31ca37 (patch) | |
tree | 0a07cc414001e9dbb27e704484f75a4a6bb61f89 /drivers/platform/x86/intel_scu_ipc.c | |
parent | 3e5b08cbbf78bedd316904ab0cf3b27119433ee5 (diff) |
intel_scu_ipc: Utility driver for intel scu ipc
This driver implements ioctl and interfaces with intel scu ipc driver. It
is used to access pmic/msic registers from user space and firmware update
utility.
Signed-off-by: Sreedhara DS <sreedhara.ds@intel.com>
[Extensive clean up and debug]
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
Diffstat (limited to 'drivers/platform/x86/intel_scu_ipc.c')
-rw-r--r-- | drivers/platform/x86/intel_scu_ipc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/platform/x86/intel_scu_ipc.c b/drivers/platform/x86/intel_scu_ipc.c index ca35b0ce944..1752ef006d2 100644 --- a/drivers/platform/x86/intel_scu_ipc.c +++ b/drivers/platform/x86/intel_scu_ipc.c | |||
@@ -497,7 +497,7 @@ int intel_scu_ipc_i2c_cntrl(u32 addr, u32 *data) | |||
497 | "intel_scu_ipc: I2C INVALID_CMD = 0x%x\n", cmd); | 497 | "intel_scu_ipc: I2C INVALID_CMD = 0x%x\n", cmd); |
498 | 498 | ||
499 | mutex_unlock(&ipclock); | 499 | mutex_unlock(&ipclock); |
500 | return -1; | 500 | return -EIO; |
501 | } | 501 | } |
502 | mutex_unlock(&ipclock); | 502 | mutex_unlock(&ipclock); |
503 | return 0; | 503 | return 0; |
@@ -642,7 +642,7 @@ update_end: | |||
642 | 642 | ||
643 | if (status == IPC_FW_UPDATE_SUCCESS) | 643 | if (status == IPC_FW_UPDATE_SUCCESS) |
644 | return 0; | 644 | return 0; |
645 | return -1; | 645 | return -EIO; |
646 | } | 646 | } |
647 | EXPORT_SYMBOL(intel_scu_ipc_fw_update); | 647 | EXPORT_SYMBOL(intel_scu_ipc_fw_update); |
648 | 648 | ||