Commit 08a9e07e authored by Arjan van de Ven's avatar Arjan van de Ven Committed by Anton Vorontsov

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: default avatarArjan van de Ven <arjan@linux.intel.com>
Signed-off-by: default avatarAlan Cox <alan@linux.intel.com>
Signed-off-by: default avatarAnton Vorontsov <cbouatmailru@gmail.com>
parent 690e85a3
...@@ -168,7 +168,7 @@ struct battery_property { ...@@ -168,7 +168,7 @@ struct battery_property {
*/ */
static int pmic_scu_ipc_battery_cc_read(u32 *value) 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); NULL, 0, value, 1);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment