* [PATCH] power_supply: max8998_charger: allow full timeout not set, leave it unchanged
@ 2011-07-31 23:41 Axel Lin
0 siblings, 0 replies; 3+ messages in thread
From: Axel Lin @ 2011-07-31 23:41 UTC (permalink / raw)
To: linux-kernel; +Cc: MyungJoo Ham, Anton Vorontsov, Donggeun Kim
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>
---
drivers/power/max8998_charger.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/power/max8998_charger.c b/drivers/power/max8998_charger.c
index 4ddacb4..f793711 100644
--- a/drivers/power/max8998_charger.c
+++ b/drivers/power/max8998_charger.c
@@ -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;
--
1.7.4.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] power_supply: max8998_charger: allow full timeout not set, leave it unchanged
@ 2011-08-01 2:16 함명주
2011-08-19 16:48 ` Anton Vorontsov
0 siblings, 1 reply; 3+ messages in thread
From: 함명주 @ 2011-08-01 2:16 UTC (permalink / raw)
To: Axel Lin, linux-kernel@vger.kernel.org
Cc: Anton Vorontsov, 김동근
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=euc-kr, Size: 742 bytes --]
Sender : Axel Lin<axel.lin@gmail.com>
Date : 2011-08-01 08:41 (GMT+09:00)
> 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
> ---
> drivers/power/max8998_charger.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
Thank you for pointing that out.
Acked-by: MyungJoo Ham <myungjoo.ham@samsung.com>
MyungJoo Ham (ÇÔ¸íÁÖ)
Mobile Software Platform Lab,
Digital Media and Communications (DMC) Business
Samsung Electronics
cell: +82-10-6714-2858 / office: +82-31-279-8033ÿôèº{.nÇ+·®+%Ëÿ±éݶ\x17¥wÿº{.nÇ+·¥{±þG«éÿ{ayº\x1dÊÚë,j\a¢f£¢·hïêÿêçz_è®\x03(éÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?¨èÚ&£ø§~á¶iOæ¬z·vØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?I¥
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] power_supply: max8998_charger: allow full timeout not set, leave it unchanged
2011-08-01 2:16 함명주
@ 2011-08-19 16:48 ` Anton Vorontsov
0 siblings, 0 replies; 3+ messages in thread
From: Anton Vorontsov @ 2011-08-19 16:48 UTC (permalink / raw)
To: 함명주
Cc: Axel Lin, linux-kernel@vger.kernel.org, 김동근
On Mon, Aug 01, 2011 at 02:16:19AM +0000, 함명주 wrote:
> Sender : Axel Lin<axel.lin@gmail.com>
> Date : 2011-08-01 08:41 (GMT+09:00)
> > 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
> > ---
> > drivers/power/max8998_charger.c | 1 +
> > 1 files changed, 1 insertions(+), 0 deletions(-)
>
> Thank you for pointing that out.
>
> Acked-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Applied, thanks!
--
Anton Vorontsov
Email: cbouatmailru@gmail.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-08-19 16:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-31 23:41 [PATCH] power_supply: max8998_charger: allow full timeout not set, leave it unchanged Axel Lin
-- strict thread matches above, loose matches on Subject: below --
2011-08-01 2:16 함명주
2011-08-19 16:48 ` Anton Vorontsov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox