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
f9f6def8
Commit
f9f6def8
authored
Jun 10, 2013
by
Dmitry Torokhov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Input: pxa27x-keypad - convert to using SIMPLE_DEV_PM_OPS
Signed-off-by:
Dmitry Torokhov
<
dmitry.torokhov@gmail.com
>
parent
e4156979
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
drivers/input/keyboard/pxa27x_keypad.c
drivers/input/keyboard/pxa27x_keypad.c
+5
-8
No files found.
drivers/input/keyboard/pxa27x_keypad.c
View file @
f9f6def8
...
...
@@ -661,7 +661,7 @@ static void pxa27x_keypad_close(struct input_dev *dev)
clk_disable_unprepare
(
keypad
->
clk
);
}
#ifdef CONFIG_PM
#ifdef CONFIG_PM
_SLEEP
static
int
pxa27x_keypad_suspend
(
struct
device
*
dev
)
{
struct
platform_device
*
pdev
=
to_platform_device
(
dev
);
...
...
@@ -705,13 +705,12 @@ static int pxa27x_keypad_resume(struct device *dev)
return
0
;
}
static
const
struct
dev_pm_ops
pxa27x_keypad_pm_ops
=
{
.
suspend
=
pxa27x_keypad_suspend
,
.
resume
=
pxa27x_keypad_resume
,
};
#endif
static
SIMPLE_DEV_PM_OPS
(
pxa27x_keypad_pm_ops
,
pxa27x_keypad_suspend
,
pxa27x_keypad_resume
);
static
int
pxa27x_keypad_probe
(
struct
platform_device
*
pdev
)
{
struct
pxa27x_keypad_platform_data
*
pdata
=
pdev
->
dev
.
platform_data
;
...
...
@@ -872,9 +871,7 @@ static struct platform_driver pxa27x_keypad_driver = {
.
name
=
"pxa27x-keypad"
,
.
of_match_table
=
of_match_ptr
(
pxa27x_keypad_dt_match
),
.
owner
=
THIS_MODULE
,
#ifdef CONFIG_PM
.
pm
=
&
pxa27x_keypad_pm_ops
,
#endif
},
};
module_platform_driver
(
pxa27x_keypad_driver
);
...
...
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