Skip to content

Commit

Permalink
max8998_charger: Allow full timeout not set, leave it unchanged
Browse files Browse the repository at this point in the history
Add a missing break for case 0 of pdata->timeout, otherwise it will fall
through to the default case and return error.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
  • Loading branch information
Axel Lin authored and Anton Vorontsov committed Aug 19, 2011
1 parent cae659a commit 45d116e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/power/max8998_charger.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ static __devinit int max8998_battery_probe(struct platform_device *pdev)
case 0:
dev_dbg(max8998->dev,
"Full Timeout not set: leave it unchanged.\n");
break;
default:
dev_err(max8998->dev, "Invalid Full Timeout value\n");
ret = -EINVAL;
Expand Down

0 comments on commit 45d116e

Please sign in to comment.