diff options
author | Pavel Machek <pavel@ucw.cz> | 2006-07-11 22:56:14 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2006-07-11 22:56:14 +0100 |
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 045e37e0733..59b5ddec480 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) val = get_select_val(buff); dev_dbg(sharpsl_pm.dev, "Temperature: %d\n", val); - if (val > sharpsl_pm.machinfo->charge_on_temp) + if (val > sharpsl_pm.machinfo->charge_on_temp) { + printk(KERN_WARNING "Not charging: temperature out of limits.\n"); return -1; + } return 0; } |