aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/intel_scu_ipc.c
diff options
context:
space:
mode:
authorSreedhara DS <sreedhara.ds@intel.com>2010-12-09 10:37:34 +0000
committerAlan Cox <alan@linux.intel.com>2010-12-09 10:37:34 +0000
commitda8d780003d63fd296f1ce0966ce2e523eef93d5 (patch)
treef178c225112460c74512f9d020f30df5338c0140 /drivers/platform/x86/intel_scu_ipc.c
parent72a17070681b6827f3948672b25e473c3676934f (diff)
downloadmrst-s0i3-test-da8d780003d63fd296f1ce0966ce2e523eef93d5.tar.gz
mrst-s0i3-test-da8d780003d63fd296f1ce0966ce2e523eef93d5.tar.xz
mrst-s0i3-test-da8d780003d63fd296f1ce0966ce2e523eef93d5.zip
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> Signed-off-by: Alan Cox <alan@linux.intel.com>
Diffstat (limited to 'drivers/platform/x86/intel_scu_ipc.c')
-rw-r--r--drivers/platform/x86/intel_scu_ipc.c4
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 41a9e34899a..37128c6f181 100644
--- a/drivers/platform/x86/intel_scu_ipc.c
+++ b/drivers/platform/x86/intel_scu_ipc.c
@@ -496,7 +496,7 @@ int intel_scu_ipc_i2c_cntrl(u32 addr, u32 *data)
"intel_scu_ipc: I2C INVALID_CMD = 0x%x\n", cmd);
mutex_unlock(&ipclock);
- return -1;
+ return -EIO;
}
mutex_unlock(&ipclock);
return 0;
@@ -641,7 +641,7 @@ update_end:
if (status == IPC_FW_UPDATE_SUCCESS)
return 0;
- return -1;
+ return -EIO;
}
EXPORT_SYMBOL(intel_scu_ipc_fw_update);