Commit de109c98 authored by Linus Torvalds's avatar Linus Torvalds

Merge git://git.infradead.org/users/cbou/battery-2.6.36

* 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
parents 7fd3fce3 1d220334
...@@ -233,6 +233,7 @@ static int calculate_capacity(enum apm_source source) ...@@ -233,6 +233,7 @@ static int calculate_capacity(enum apm_source source)
empty_design_prop = POWER_SUPPLY_PROP_ENERGY_EMPTY_DESIGN; empty_design_prop = POWER_SUPPLY_PROP_ENERGY_EMPTY_DESIGN;
now_prop = POWER_SUPPLY_PROP_ENERGY_NOW; now_prop = POWER_SUPPLY_PROP_ENERGY_NOW;
avg_prop = POWER_SUPPLY_PROP_ENERGY_AVG; avg_prop = POWER_SUPPLY_PROP_ENERGY_AVG;
break;
case SOURCE_VOLTAGE: case SOURCE_VOLTAGE:
full_prop = POWER_SUPPLY_PROP_VOLTAGE_MAX; full_prop = POWER_SUPPLY_PROP_VOLTAGE_MAX;
empty_prop = POWER_SUPPLY_PROP_VOLTAGE_MIN; empty_prop = POWER_SUPPLY_PROP_VOLTAGE_MIN;
......
...@@ -185,8 +185,8 @@ static int pmic_scu_ipc_battery_property_get(struct battery_property *prop) ...@@ -185,8 +185,8 @@ static int pmic_scu_ipc_battery_property_get(struct battery_property *prop)
{ {
u32 data[3]; u32 data[3];
u8 *p = (u8 *)&data[1]; u8 *p = (u8 *)&data[1];
int err = intel_scu_ipc_command(IPC_CMD_BATTERY_PROPERTY, int err = intel_scu_ipc_command(IPCMSG_BATTERY,
IPCMSG_BATTERY, NULL, 0, data, 3); IPC_CMD_BATTERY_PROPERTY, NULL, 0, data, 3);
prop->capacity = data[0]; prop->capacity = data[0];
prop->crnt = *p++; prop->crnt = *p++;
...@@ -207,7 +207,7 @@ static int pmic_scu_ipc_battery_property_get(struct battery_property *prop) ...@@ -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) 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);
} }
/** /**
......
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