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
fa3e44f3
Commit
fa3e44f3
authored
Mar 04, 2012
by
Dmitry Torokhov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Input: atmel-wm97xx - convert to dev_pm_ops
Signed-off-by:
Dmitry Torokhov
<
dtor@mail.ru
>
parent
0c0c440f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
drivers/input/touchscreen/atmel-wm97xx.c
drivers/input/touchscreen/atmel-wm97xx.c
+9
-8
No files found.
drivers/input/touchscreen/atmel-wm97xx.c
View file @
fa3e44f3
...
...
@@ -392,9 +392,10 @@ static int __exit atmel_wm97xx_remove(struct platform_device *pdev)
return
0
;
}
#ifdef CONFIG_PM
static
int
atmel_wm97xx_suspend
(
struct
platform_device
*
pdev
,
pm_message_t
msg
)
#ifdef CONFIG_PM
_SLEEP
static
int
atmel_wm97xx_suspend
(
struct
*
dev
)
{
struct
platform_device
*
pdev
=
to_platform_device
(
dev
);
struct
atmel_wm97xx
*
atmel_wm97xx
=
platform_get_drvdata
(
pdev
);
ac97c_writel
(
atmel_wm97xx
,
IDR
,
AC97C_INT_CBEVT
);
...
...
@@ -404,8 +405,9 @@ static int atmel_wm97xx_suspend(struct platform_device *pdev, pm_message_t msg)
return
0
;
}
static
int
atmel_wm97xx_resume
(
struct
platform_device
*
p
dev
)
static
int
atmel_wm97xx_resume
(
struct
device
*
dev
)
{
struct
platform_device
*
pdev
=
to_platform_device
(
dev
);
struct
atmel_wm97xx
*
atmel_wm97xx
=
platform_get_drvdata
(
pdev
);
struct
wm97xx
*
wm
=
atmel_wm97xx
->
wm
;
...
...
@@ -416,19 +418,18 @@ static int atmel_wm97xx_resume(struct platform_device *pdev)
return
0
;
}
#else
#define atmel_wm97xx_suspend NULL
#define atmel_wm97xx_resume NULL
#endif
static
SIMPLE_DEV_PM_OPS
(
atmel_wm97xx_pm_ops
,
atmel_wm97xx_suspend
,
atmel_wm97xx_resume
);
static
struct
platform_driver
atmel_wm97xx_driver
=
{
.
remove
=
__exit_p
(
atmel_wm97xx_remove
),
.
driver
=
{
.
name
=
"wm97xx-touch"
,
.
owner
=
THIS_MODULE
,
.
pm
=
&
atmel_wm97xx_pm_ops
,
},
.
suspend
=
atmel_wm97xx_suspend
,
.
resume
=
atmel_wm97xx_resume
,
};
module_platform_driver
(
atmel_wm97xx_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