Skip to contentSkip to conversation

power_supply: max8998_charger: allow full timeout not set, leave it unchanged

PATCH New Axel Lin 1 participant 1 message Jul 31, 2011

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 power_supply: 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.

---
 drivers/power/max8998_charger.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/power/max8998_charger.c +1 -0
index 4ddacb4..f793711 100644
@@ -152,6 +152,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;
Signature · 1 line
1.7.4.1