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
Kirill Smelkov
linux
Commits
3e098984
Commit
3e098984
authored
Jan 12, 2011
by
Len Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'bugzilla-21212' into release
parents
da8aeb92
99fd1895
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
drivers/acpi/video.c
drivers/acpi/video.c
+12
-3
No files found.
drivers/acpi/video.c
View file @
3e098984
...
...
@@ -80,6 +80,13 @@ module_param(brightness_switch_enabled, bool, 0644);
static
int
allow_duplicates
;
module_param
(
allow_duplicates
,
bool
,
0644
);
/*
* Some BIOSes claim they use minimum backlight at boot,
* and this may bring dimming screen after boot
*/
static
int
use_bios_initial_backlight
=
1
;
module_param
(
use_bios_initial_backlight
,
bool
,
0644
);
static
int
register_count
=
0
;
static
int
acpi_video_bus_add
(
struct
acpi_device
*
device
);
static
int
acpi_video_bus_remove
(
struct
acpi_device
*
device
,
int
type
);
...
...
@@ -705,9 +712,11 @@ acpi_video_init_brightness(struct acpi_video_device *device)
* when invoked for the first time, i.e. level_old is invalid.
* set the backlight to max_level in this case
*/
for
(
i
=
2
;
i
<
br
->
count
;
i
++
)
if
(
level_old
==
br
->
levels
[
i
])
level
=
level_old
;
if
(
use_bios_initial_backlight
)
{
for
(
i
=
2
;
i
<
br
->
count
;
i
++
)
if
(
level_old
==
br
->
levels
[
i
])
level
=
level_old
;
}
goto
set_level
;
}
...
...
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