Browse Source

ab8500_fg: Fix copy-paste error

ab8500_fg_discharge_state_to() function should accept
'enum ab8500_fg_discharge_state' argument, not
'enum ab8500_fg_charge_state'.

Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
Anton Vorontsov 13 years ago
parent
commit
0fff22ee79
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/power/ab8500_fg.c

+ 1 - 1
drivers/power/ab8500_fg.c

@@ -1255,7 +1255,7 @@ static void ab8500_fg_charge_state_to(struct ab8500_fg *di,
 }
 
 static void ab8500_fg_discharge_state_to(struct ab8500_fg *di,
-	enum ab8500_fg_charge_state new_state)
+	enum ab8500_fg_discharge_state new_state)
 {
 	dev_dbg(di->dev, "Disharge state from %d [%s] to %d [%s]\n",
 		di->discharge_state,