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
8b5fce06
Commit
8b5fce06
authored
Nov 18, 2010
by
Dmitry Torokhov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Input: qt602240_ts - convert to using dev_pm_ops
Signed-off-by:
Dmitry Torokhov
<
dtor@mail.ru
>
parent
e3f0f0a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
drivers/input/touchscreen/qt602240_ts.c
drivers/input/touchscreen/qt602240_ts.c
+12
-7
No files found.
drivers/input/touchscreen/qt602240_ts.c
View file @
8b5fce06
...
@@ -1324,8 +1324,9 @@ static int __devexit qt602240_remove(struct i2c_client *client)
...
@@ -1324,8 +1324,9 @@ static int __devexit qt602240_remove(struct i2c_client *client)
}
}
#ifdef CONFIG_PM
#ifdef CONFIG_PM
static
int
qt602240_suspend
(
struct
i2c_client
*
client
,
pm_message_t
mesg
)
static
int
qt602240_suspend
(
struct
device
*
dev
)
{
{
struct
i2c_client
*
client
=
to_i2c_client
(
dev
);
struct
qt602240_data
*
data
=
i2c_get_clientdata
(
client
);
struct
qt602240_data
*
data
=
i2c_get_clientdata
(
client
);
struct
input_dev
*
input_dev
=
data
->
input_dev
;
struct
input_dev
*
input_dev
=
data
->
input_dev
;
...
@@ -1339,8 +1340,9 @@ static int qt602240_suspend(struct i2c_client *client, pm_message_t mesg)
...
@@ -1339,8 +1340,9 @@ static int qt602240_suspend(struct i2c_client *client, pm_message_t mesg)
return
0
;
return
0
;
}
}
static
int
qt602240_resume
(
struct
i2c_client
*
client
)
static
int
qt602240_resume
(
struct
device
*
dev
)
{
{
struct
i2c_client
*
client
=
to_i2c_client
(
dev
);
struct
qt602240_data
*
data
=
i2c_get_clientdata
(
client
);
struct
qt602240_data
*
data
=
i2c_get_clientdata
(
client
);
struct
input_dev
*
input_dev
=
data
->
input_dev
;
struct
input_dev
*
input_dev
=
data
->
input_dev
;
...
@@ -1359,9 +1361,11 @@ static int qt602240_resume(struct i2c_client *client)
...
@@ -1359,9 +1361,11 @@ static int qt602240_resume(struct i2c_client *client)
return
0
;
return
0
;
}
}
#else
#define qt602240_suspend NULL
static
const
struct
dev_pm_ops
qt602240_pm_ops
=
{
#define qt602240_resume NULL
.
suspend
=
qt602240_suspend
,
.
resume
=
qt602240_resume
,
};
#endif
#endif
static
const
struct
i2c_device_id
qt602240_id
[]
=
{
static
const
struct
i2c_device_id
qt602240_id
[]
=
{
...
@@ -1374,11 +1378,12 @@ static struct i2c_driver qt602240_driver = {
...
@@ -1374,11 +1378,12 @@ static struct i2c_driver qt602240_driver = {
.
driver
=
{
.
driver
=
{
.
name
=
"qt602240_ts"
,
.
name
=
"qt602240_ts"
,
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
#ifdef CONFIG_PM
.
pm
=
&
qt602240_pm_ops
,
#endif
},
},
.
probe
=
qt602240_probe
,
.
probe
=
qt602240_probe
,
.
remove
=
__devexit_p
(
qt602240_remove
),
.
remove
=
__devexit_p
(
qt602240_remove
),
.
suspend
=
qt602240_suspend
,
.
resume
=
qt602240_resume
,
.
id_table
=
qt602240_id
,
.
id_table
=
qt602240_id
,
};
};
...
...
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