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
619d8b11
Commit
619d8b11
authored
Nov 28, 2009
by
Corentin Chary
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
asus-laptop: remove unecessary hotk != NULL check
Signed-off-by:
Corentin Chary
<
corentincj@iksaif.net
>
parent
91687cc8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
drivers/platform/x86/asus-laptop.c
drivers/platform/x86/asus-laptop.c
+1
-4
No files found.
drivers/platform/x86/asus-laptop.c
View file @
619d8b11
...
@@ -941,10 +941,6 @@ static void asus_hotk_notify(struct acpi_device *device, u32 event)
...
@@ -941,10 +941,6 @@ static void asus_hotk_notify(struct acpi_device *device, u32 event)
static
struct
key_entry
*
key
;
static
struct
key_entry
*
key
;
u16
count
;
u16
count
;
/* TODO Find a better way to handle events count. */
if
(
!
hotk
)
return
;
/*
/*
* We need to tell the backlight device when the backlight power is
* We need to tell the backlight device when the backlight power is
* switched
* switched
...
@@ -957,6 +953,7 @@ static void asus_hotk_notify(struct acpi_device *device, u32 event)
...
@@ -957,6 +953,7 @@ static void asus_hotk_notify(struct acpi_device *device, u32 event)
lcd_blank
(
FB_BLANK_POWERDOWN
);
lcd_blank
(
FB_BLANK_POWERDOWN
);
}
}
/* TODO Find a better way to handle events count. */
count
=
hotk
->
event_count
[
event
%
128
]
++
;
count
=
hotk
->
event_count
[
event
%
128
]
++
;
acpi_bus_generate_proc_event
(
hotk
->
device
,
event
,
count
);
acpi_bus_generate_proc_event
(
hotk
->
device
,
event
,
count
);
acpi_bus_generate_netlink_event
(
hotk
->
device
->
pnp
.
device_class
,
acpi_bus_generate_netlink_event
(
hotk
->
device
->
pnp
.
device_class
,
...
...
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