Skip to content

Commit

Permalink
intel_mid_battery: Fix the argument order to intel_scu_ipc_command
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Arjan van de Ven authored and Anton Vorontsov committed Aug 10, 2010
1 parent 690e85a commit 08a9e07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/power/intel_mid_battery.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 08a9e07

Please sign in to comment.