max8998_charger: Allow full timeout not set, leave it unchanged
authorAxel Lin <axel.lin@gmail.com>
Sun, 31 Jul 2011 23:41:50 +0000 (07:41 +0800)
committerAnton Vorontsov <cbouatmailru@gmail.com>
Fri, 19 Aug 2011 17:03:26 +0000 (21:03 +0400)
commit45d116ec2503c4255374e11c2c48f81cdf6d0f1d
tree3a2800ca261d2645c80f63dedad498ca4c21512d
parentcae659af87288a4b1723cdf94d713ef7fb4c56d9
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>
drivers/power/max8998_charger.c