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
667ae4ee
Commit
667ae4ee
authored
Dec 08, 2014
by
Rafael J. Wysocki
Browse files
Options
Browse Files
Download
Plain Diff
Merge back earlier ACPI backlight material for 3.19-rc1.
parents
35d0565b
dce4ec2e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
drivers/acpi/video.c
drivers/acpi/video.c
+15
-0
No files found.
drivers/acpi/video.c
View file @
667ae4ee
...
...
@@ -1681,6 +1681,19 @@ static void acpi_video_dev_register_backlight(struct acpi_video_device *device)
printk
(
KERN_ERR
PREFIX
"Create sysfs link
\n
"
);
}
static
void
acpi_video_run_bcl_for_osi
(
struct
acpi_video_bus
*
video
)
{
struct
acpi_video_device
*
dev
;
union
acpi_object
*
levels
;
mutex_lock
(
&
video
->
device_list_lock
);
list_for_each_entry
(
dev
,
&
video
->
video_device_list
,
entry
)
{
if
(
!
acpi_video_device_lcd_query_levels
(
dev
,
&
levels
))
kfree
(
levels
);
}
mutex_unlock
(
&
video
->
device_list_lock
);
}
static
int
acpi_video_bus_register_backlight
(
struct
acpi_video_bus
*
video
)
{
struct
acpi_video_device
*
dev
;
...
...
@@ -1688,6 +1701,8 @@ static int acpi_video_bus_register_backlight(struct acpi_video_bus *video)
if
(
video
->
backlight_registered
)
return
0
;
acpi_video_run_bcl_for_osi
(
video
);
if
(
!
acpi_video_verify_backlight_support
())
return
0
;
...
...
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