Skip to content

Commit

Permalink
Merge git://git.infradead.org/users/cbou/battery-2.6.36
Browse files Browse the repository at this point in the history
* git://git.infradead.org/users/cbou/battery-2.6.36:
  apm_power: Add missing break statement
  intel_pmic_battery: Fix battery charging status on mrst
  • Loading branch information
Linus Torvalds committed Sep 16, 2010
2 parents 7fd3fce + 1d22033 commit de109c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions drivers/power/apm_power.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ static int calculate_capacity(enum apm_source source)
empty_design_prop = POWER_SUPPLY_PROP_ENERGY_EMPTY_DESIGN;
now_prop = POWER_SUPPLY_PROP_ENERGY_NOW;
avg_prop = POWER_SUPPLY_PROP_ENERGY_AVG;
break;
case SOURCE_VOLTAGE:
full_prop = POWER_SUPPLY_PROP_VOLTAGE_MAX;
empty_prop = POWER_SUPPLY_PROP_VOLTAGE_MIN;
Expand Down
6 changes: 3 additions & 3 deletions drivers/power/intel_mid_battery.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@ static int pmic_scu_ipc_battery_property_get(struct battery_property *prop)
{
u32 data[3];
u8 *p = (u8 *)&data[1];
int err = intel_scu_ipc_command(IPC_CMD_BATTERY_PROPERTY,
IPCMSG_BATTERY, NULL, 0, data, 3);
int err = intel_scu_ipc_command(IPCMSG_BATTERY,
IPC_CMD_BATTERY_PROPERTY, NULL, 0, data, 3);

prop->capacity = data[0];
prop->crnt = *p++;
Expand All @@ -207,7 +207,7 @@ static int pmic_scu_ipc_battery_property_get(struct battery_property *prop)

static int pmic_scu_ipc_set_charger(int charger)
{
return intel_scu_ipc_simple_command(charger, IPCMSG_BATTERY);
return intel_scu_ipc_simple_command(IPCMSG_BATTERY, charger);
}

/**
Expand Down

0 comments on commit de109c9

Please sign in to comment.