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
10ee2ded
Commit
10ee2ded
authored
Nov 11, 2010
by
Dmitry Torokhov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Input: pcf_keypad - convert to dev_op_ops
Signed-off-by:
Dmitry Torokhov
<
dtor@mail.ru
>
parent
2a059159
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
4 deletions
+15
-4
drivers/input/misc/pcf8574_keypad.c
drivers/input/misc/pcf8574_keypad.c
+15
-4
No files found.
drivers/input/misc/pcf8574_keypad.c
View file @
10ee2ded
...
...
@@ -169,19 +169,29 @@ static int __devexit pcf8574_kp_remove(struct i2c_client *client)
}
#ifdef CONFIG_PM
static
int
pcf8574_kp_resume
(
struct
i2c_client
*
client
)
static
int
pcf8574_kp_resume
(
struct
device
*
dev
)
{
struct
i2c_client
*
client
=
to_i2c_client
(
dev
);
enable_irq
(
client
->
irq
);
return
0
;
}
static
int
pcf8574_kp_suspend
(
struct
i2c_client
*
client
,
pm_message_t
mesg
)
static
int
pcf8574_kp_suspend
(
struct
device
*
dev
)
{
struct
i2c_client
*
client
=
to_i2c_client
(
dev
);
disable_irq
(
client
->
irq
);
return
0
;
}
static
const
struct
dev_pm_ops
pcf8574_kp_pm_ops
=
{
.
suspend
=
pcf8574_kp_suspend
,
.
resume
=
pcf8574_kp_resume
,
};
#else
# define pcf8574_kp_resume NULL
# define pcf8574_kp_suspend NULL
...
...
@@ -197,11 +207,12 @@ static struct i2c_driver pcf8574_kp_driver = {
.
driver
=
{
.
name
=
DRV_NAME
,
.
owner
=
THIS_MODULE
,
#ifdef CONFIG_PM
.
pm
=
&
pcf8574_kp_pm_ops
,
#endif
},
.
probe
=
pcf8574_kp_probe
,
.
remove
=
__devexit_p
(
pcf8574_kp_remove
),
.
suspend
=
pcf8574_kp_suspend
,
.
resume
=
pcf8574_kp_resume
,
.
id_table
=
pcf8574_kp_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