From 08a9e07e3fcfcd8df23b57edef8c6876f51020a1 Mon Sep 17 00:00:00 2001 From: Arjan van de Ven Date: Tue, 10 Aug 2010 10:27:57 +0100 Subject: [PATCH] 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 --- drivers/power/intel_mid_battery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/intel_mid_battery.c b/drivers/power/intel_mid_battery.c index 46730f579d7..6430a7bb637 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); } -- 2.41.0