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
400bf299
Commit
400bf299
authored
Nov 07, 2011
by
Dmitry Torokhov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Input: samsung-keypad - switch to using SIMPLE_DEV_PM_OPS
Signed-off-by:
Dmitry Torokhov
<
dtor@mail.ru
>
parent
7968a5dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
drivers/input/keyboard/samsung-keypad.c
drivers/input/keyboard/samsung-keypad.c
+4
-8
No files found.
drivers/input/keyboard/samsung-keypad.c
View file @
400bf299
...
@@ -381,7 +381,7 @@ static int __devexit samsung_keypad_remove(struct platform_device *pdev)
...
@@ -381,7 +381,7 @@ static int __devexit samsung_keypad_remove(struct platform_device *pdev)
return
0
;
return
0
;
}
}
#ifdef CONFIG_PM
#ifdef CONFIG_PM
_SLEEP
static
void
samsung_keypad_toggle_wakeup
(
struct
samsung_keypad
*
keypad
,
static
void
samsung_keypad_toggle_wakeup
(
struct
samsung_keypad
*
keypad
,
bool
enable
)
bool
enable
)
{
{
...
@@ -440,13 +440,11 @@ static int samsung_keypad_resume(struct device *dev)
...
@@ -440,13 +440,11 @@ static int samsung_keypad_resume(struct device *dev)
return
0
;
return
0
;
}
}
static
const
struct
dev_pm_ops
samsung_keypad_pm_ops
=
{
.
suspend
=
samsung_keypad_suspend
,
.
resume
=
samsung_keypad_resume
,
};
#endif
#endif
static
SIMPLE_DEV_PM_OPS
(
samsung_keypad_pm_ops
,
samsung_keypad_suspend
,
samsung_keypad_resume
);
static
struct
platform_device_id
samsung_keypad_driver_ids
[]
=
{
static
struct
platform_device_id
samsung_keypad_driver_ids
[]
=
{
{
{
.
name
=
"samsung-keypad"
,
.
name
=
"samsung-keypad"
,
...
@@ -465,9 +463,7 @@ static struct platform_driver samsung_keypad_driver = {
...
@@ -465,9 +463,7 @@ static struct platform_driver samsung_keypad_driver = {
.
driver
=
{
.
driver
=
{
.
name
=
"samsung-keypad"
,
.
name
=
"samsung-keypad"
,
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
#ifdef CONFIG_PM
.
pm
=
&
samsung_keypad_pm_ops
,
.
pm
=
&
samsung_keypad_pm_ops
,
#endif
},
},
.
id_table
=
samsung_keypad_driver_ids
,
.
id_table
=
samsung_keypad_driver_ids
,
};
};
...
...
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