dect
/
linux-2.6
Archived
13
0
Fork 0

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>
This commit is contained in:
Arjan van de Ven 2010-08-10 10:27:57 +01:00 committed by Anton Vorontsov
parent 690e85a395
commit 08a9e07e3f
1 changed files with 1 additions and 1 deletions

View 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);
}