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
b0010911
Commit
b0010911
authored
Jul 24, 2009
by
Dmitry Torokhov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Input: pxa27x_keypad - switch to using dev_pm_ops
Signed-off-by:
Dmitry Torokhov
<
dtor@mail.ru
>
parent
633aae23
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
drivers/input/keyboard/pxa27x_keypad.c
drivers/input/keyboard/pxa27x_keypad.c
+12
-7
No files found.
drivers/input/keyboard/pxa27x_keypad.c
View file @
b0010911
...
@@ -389,8 +389,9 @@ static void pxa27x_keypad_close(struct input_dev *dev)
...
@@ -389,8 +389,9 @@ static void pxa27x_keypad_close(struct input_dev *dev)
}
}
#ifdef CONFIG_PM
#ifdef CONFIG_PM
static
int
pxa27x_keypad_suspend
(
struct
platform_device
*
pdev
,
pm_message_t
state
)
static
int
pxa27x_keypad_suspend
(
struct
device
*
dev
)
{
{
struct
platform_device
*
pdev
=
to_platform_device
(
dev
);
struct
pxa27x_keypad
*
keypad
=
platform_get_drvdata
(
pdev
);
struct
pxa27x_keypad
*
keypad
=
platform_get_drvdata
(
pdev
);
clk_disable
(
keypad
->
clk
);
clk_disable
(
keypad
->
clk
);
...
@@ -401,8 +402,9 @@ static int pxa27x_keypad_suspend(struct platform_device *pdev, pm_message_t stat
...
@@ -401,8 +402,9 @@ static int pxa27x_keypad_suspend(struct platform_device *pdev, pm_message_t stat
return
0
;
return
0
;
}
}
static
int
pxa27x_keypad_resume
(
struct
platform_device
*
p
dev
)
static
int
pxa27x_keypad_resume
(
struct
device
*
dev
)
{
{
struct
platform_device
*
pdev
=
to_platform_device
(
dev
);
struct
pxa27x_keypad
*
keypad
=
platform_get_drvdata
(
pdev
);
struct
pxa27x_keypad
*
keypad
=
platform_get_drvdata
(
pdev
);
struct
input_dev
*
input_dev
=
keypad
->
input_dev
;
struct
input_dev
*
input_dev
=
keypad
->
input_dev
;
...
@@ -421,9 +423,11 @@ static int pxa27x_keypad_resume(struct platform_device *pdev)
...
@@ -421,9 +423,11 @@ static int pxa27x_keypad_resume(struct platform_device *pdev)
return
0
;
return
0
;
}
}
#else
#define pxa27x_keypad_suspend NULL
static
const
struct
dev_pm_ops
pxa27x_keypad_pm_ops
=
{
#define pxa27x_keypad_resume NULL
.
suspend
=
pxa27x_keypad_suspend
,
.
resume
=
pxa27x_keypad_resume
,
};
#endif
#endif
static
int
__devinit
pxa27x_keypad_probe
(
struct
platform_device
*
pdev
)
static
int
__devinit
pxa27x_keypad_probe
(
struct
platform_device
*
pdev
)
...
@@ -572,11 +576,12 @@ MODULE_ALIAS("platform:pxa27x-keypad");
...
@@ -572,11 +576,12 @@ MODULE_ALIAS("platform:pxa27x-keypad");
static
struct
platform_driver
pxa27x_keypad_driver
=
{
static
struct
platform_driver
pxa27x_keypad_driver
=
{
.
probe
=
pxa27x_keypad_probe
,
.
probe
=
pxa27x_keypad_probe
,
.
remove
=
__devexit_p
(
pxa27x_keypad_remove
),
.
remove
=
__devexit_p
(
pxa27x_keypad_remove
),
.
suspend
=
pxa27x_keypad_suspend
,
.
resume
=
pxa27x_keypad_resume
,
.
driver
=
{
.
driver
=
{
.
name
=
"pxa27x-keypad"
,
.
name
=
"pxa27x-keypad"
,
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
#ifdef CONFIG_PM
.
pm
=
&
pxa27x_keypad_pm_ops
,
#endif
},
},
};
};
...
...
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