From: Arjan van de Ven Date: Tue, 10 Aug 2010 09:27:57 +0000 (+0100) Subject: intel_mid_battery: Fix the argument order to intel_scu_ipc_command X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=08a9e07e3fcfcd8df23b57edef8c6876f51020a1;p=deliverable%2Flinux.git 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 Signed-off-by: Alan Cox Signed-off-by: Anton Vorontsov --- 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); }