aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/power/intel_mid_battery.c
diff options
context:
space:
mode:
authorArjan van de Ven <arjan@linux.intel.com>2010-08-10 05:27:57 -0400
committerAnton Vorontsov <cbouatmailru@gmail.com>2010-08-10 06:34:55 -0400
commit08a9e07e3fcfcd8df23b57edef8c6876f51020a1 (patch)
treef7363671aee6de8c20b33025165a3fce61534f71 /drivers/power/intel_mid_battery.c
parent690e85a3957291f4cfe0cac22d97994ec7e5ee45 (diff)
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/intel_mid_battery.c')
-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 {
168 */ 168 */
169static int pmic_scu_ipc_battery_cc_read(u32 *value) 169static int pmic_scu_ipc_battery_cc_read(u32 *value)
170{ 170{
171 return intel_scu_ipc_command(IPC_CMD_CC_RD, IPCMSG_BATTERY, 171 return intel_scu_ipc_command(IPCMSG_BATTERY, IPC_CMD_CC_RD,
172 NULL, 0, value, 1); 172 NULL, 0, value, 1);
173} 173}
174 174