]> Git Repo - linux.git/commitdiff
intel_mid_battery: Fix the argument order to intel_scu_ipc_command
authorArjan van de Ven <[email protected]>
Tue, 10 Aug 2010 09:27:57 +0000 (10:27 +0100)
committerAnton Vorontsov <[email protected]>
Tue, 10 Aug 2010 10:34:55 +0000 (14:34 +0400)
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 <[email protected]>
Signed-off-by: Alan Cox <[email protected]>
Signed-off-by: Anton Vorontsov <[email protected]>
drivers/power/intel_mid_battery.c

index 46730f579d7fbc84cf8f699ac9e473d000cb4a86..6430a7bb637b28e3807a39ec6ac62836744a9685 100644 (file)
@@ -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);
 }
 
This page took 0.059288 seconds and 4 git commands to generate.