diff options
author | Pavel Machek <pavel@ucw.cz> | 2006-07-11 17:56:14 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2006-07-11 17:56:14 -0400 |
commit | 2704f0e69f9e191c6f5873ebfc878e4be1893ef8 (patch) | |
tree | de616ff1b580b69eb2f8ee06c3b7ff0d0b093fe3 /arch/arm | |
parent | 3821589c3becb4620dd56bf7f85c14084be1cf22 (diff) |
[ARM] 3725/1: sharpsl_pm: warn about wrong temperature
Patch from Pavel Machek
Also warn users about charging in unsuitable temperature.
Signed-off-by: Pavel Machek <pavel@suse.cz>
Acked-by: Richard Purdie <rpurdie@rpsys.net>
Acked-by: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/common/sharpsl_pm.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/common/sharpsl_pm.c b/arch/arm/common/sharpsl_pm.c index 045e37e07330..59b5ddec480f 100644 --- a/arch/arm/common/sharpsl_pm.c +++ b/arch/arm/common/sharpsl_pm.c | |||
@@ -412,8 +412,10 @@ static int sharpsl_check_battery_temp(void) | |||
412 | val = get_select_val(buff); | 412 | val = get_select_val(buff); |
413 | 413 | ||
414 | dev_dbg(sharpsl_pm.dev, "Temperature: %d\n", val); | 414 | dev_dbg(sharpsl_pm.dev, "Temperature: %d\n", val); |
415 | if (val > sharpsl_pm.machinfo->charge_on_temp) | 415 | if (val > sharpsl_pm.machinfo->charge_on_temp) { |
416 | printk(KERN_WARNING "Not charging: temperature out of limits.\n"); | ||
416 | return -1; | 417 | return -1; |
418 | } | ||
417 | 419 | ||
418 | return 0; | 420 | return 0; |
419 | } | 421 | } |