Commit 7101c2ba authored by Russell King's avatar Russell King

[ARM] APM: "Battery life" needs to be a signed integer.

parent e4b2a037
......@@ -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;
......
......@@ -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;
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment