Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
7101c2ba
Commit
7101c2ba
authored
Sep 14, 2004
by
Russell King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARM] APM: "Battery life" needs to be a signed integer.
parent
e4b2a037
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
arch/arm/kernel/apm.c
arch/arm/kernel/apm.c
+1
-1
include/asm-arm/apm.h
include/asm-arm/apm.h
+1
-1
No files found.
arch/arm/kernel/apm.c
View file @
7101c2ba
...
@@ -433,7 +433,7 @@ static int apm_get_info(char *buf, char **start, off_t fpos, int length)
...
@@ -433,7 +433,7 @@ static int apm_get_info(char *buf, char **start, off_t fpos, int length)
info
.
ac_line_status
=
0xff
;
info
.
ac_line_status
=
0xff
;
info
.
battery_status
=
0xff
;
info
.
battery_status
=
0xff
;
info
.
battery_flag
=
0xff
;
info
.
battery_flag
=
0xff
;
info
.
battery_life
=
255
;
info
.
battery_life
=
-
1
;
info
.
time
=
-
1
;
info
.
time
=
-
1
;
info
.
units
=
-
1
;
info
.
units
=
-
1
;
...
...
include/asm-arm/apm.h
View file @
7101c2ba
...
@@ -41,7 +41,7 @@ struct apm_power_info {
...
@@ -41,7 +41,7 @@ struct apm_power_info {
unsigned
char
ac_line_status
;
unsigned
char
ac_line_status
;
unsigned
char
battery_status
;
unsigned
char
battery_status
;
unsigned
char
battery_flag
;
unsigned
char
battery_flag
;
unsigned
char
battery_life
;
int
battery_life
;
int
time
;
int
time
;
int
units
;
int
units
;
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment