summaryrefslogtreecommitdiff
path: root/drivers/power
diff options
context:
space:
mode:
authorArjan van de Ven <arjan@linux.intel.com>2010-08-10 13:27:57 +0400
committerAnton Vorontsov <cbouatmailru@gmail.com>2010-08-10 14:34:55 +0400
commit08a9e07e3fcfcd8df23b57edef8c6876f51020a1 (patch)
treef7363671aee6de8c20b33025165a3fce61534f71 /drivers/power
parent690e85a3957291f4cfe0cac22d97994ec7e5ee45 (diff)
downloadlinux-08a9e07e3fcfcd8df23b57edef8c6876f51020a1.tar.xz
intel_mid_battery: Fix the argument order to intel_scu_ipc_command
The arguments to intel_scu_ipc_command are "command, subcommand" the battery driver got this the wrong way around. Signed-off-by: Arjan van de Ven <arjan@linux.intel.com> Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/intel_mid_battery.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/intel_mid_battery.c b/drivers/power/intel_mid_battery.c
index 46730f579d7f..6430a7bb637b 100644
--- a/drivers/power/intel_mid_battery.c
+++ b/drivers/power/intel_mid_battery.c
@@ -168,7 +168,7 @@ struct battery_property {
*/
static int pmic_scu_ipc_battery_cc_read(u32 *value)
{
- return intel_scu_ipc_command(IPC_CMD_CC_RD, IPCMSG_BATTERY,
+ return intel_scu_ipc_command(IPCMSG_BATTERY, IPC_CMD_CC_RD,
NULL, 0, value, 1);
}