Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
a8e896e2
Commit
a8e896e2
authored
Jan 09, 2009
by
Len Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'battery' into release
parents
39cecf20
50b17851
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
drivers/acpi/battery.c
drivers/acpi/battery.c
+3
-2
No files found.
drivers/acpi/battery.c
View file @
a8e896e2
...
@@ -471,7 +471,7 @@ static void sysfs_remove_battery(struct acpi_battery *battery)
...
@@ -471,7 +471,7 @@ static void sysfs_remove_battery(struct acpi_battery *battery)
static
int
acpi_battery_update
(
struct
acpi_battery
*
battery
)
static
int
acpi_battery_update
(
struct
acpi_battery
*
battery
)
{
{
int
result
;
int
result
,
old_present
=
acpi_battery_present
(
battery
)
;
result
=
acpi_battery_get_status
(
battery
);
result
=
acpi_battery_get_status
(
battery
);
if
(
result
)
if
(
result
)
return
result
;
return
result
;
...
@@ -482,7 +482,8 @@ static int acpi_battery_update(struct acpi_battery *battery)
...
@@ -482,7 +482,8 @@ static int acpi_battery_update(struct acpi_battery *battery)
return
0
;
return
0
;
}
}
#endif
#endif
if
(
!
battery
->
update_time
)
{
if
(
!
battery
->
update_time
||
old_present
!=
acpi_battery_present
(
battery
))
{
result
=
acpi_battery_get_info
(
battery
);
result
=
acpi_battery_get_info
(
battery
);
if
(
result
)
if
(
result
)
return
result
;
return
result
;
...
...
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