]> git.hungrycats.org Git - linux/commitdiff
[ARM] APM: "Battery life" needs to be a signed integer.
authorRussell King <rmk@flint.arm.linux.org.uk>
Mon, 13 Sep 2004 23:59:57 +0000 (00:59 +0100)
committerRussell King <rmk@flint.arm.linux.org.uk>
Mon, 13 Sep 2004 23:59:57 +0000 (00:59 +0100)
arch/arm/kernel/apm.c
include/asm-arm/apm.h

index 12da0405037c2fba1a6f67eb77b255851f2c5855..3c3dba83af1ce8ef77fba48fb95343dd36341866 100644 (file)
@@ -433,7 +433,7 @@ static int apm_get_info(char *buf, char **start, off_t fpos, int length)
        info.ac_line_status = 0xff;
        info.battery_status = 0xff;
        info.battery_flag   = 0xff;
-       info.battery_life   = 255;
+       info.battery_life   = -1;
        info.time           = -1;
        info.units          = -1;
 
index d2956cfab4e6dcb9b9977a2359da9ade77053cda..573f3eee70c68bcbb5e6b1320ce7a02883bce4ce 100644 (file)
@@ -41,7 +41,7 @@ struct apm_power_info {
        unsigned char   ac_line_status;
        unsigned char   battery_status;
        unsigned char   battery_flag;
-       unsigned char   battery_life;
+       int             battery_life;
        int             time;
        int             units;
 };