mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 03:10:12 +00:00
max8998_charger: Allow full timeout not set, leave it unchanged
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>
This commit is contained in:
parent
cae659af87
commit
45d116ec25
1 changed files with 1 additions and 0 deletions
|
@ -153,6 +153,7 @@ static __devinit int max8998_battery_probe(struct platform_device *pdev)
|
||||||
case 0:
|
case 0:
|
||||||
dev_dbg(max8998->dev,
|
dev_dbg(max8998->dev,
|
||||||
"Full Timeout not set: leave it unchanged.\n");
|
"Full Timeout not set: leave it unchanged.\n");
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
dev_err(max8998->dev, "Invalid Full Timeout value\n");
|
dev_err(max8998->dev, "Invalid Full Timeout value\n");
|
||||||
ret = -EINVAL;
|
ret = -EINVAL;
|
||||||
|
|
Loading…
Reference in a new issue