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
ec208612
Commit
ec208612
authored
Nov 30, 2011
by
Dmitry Torokhov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Input: migor-ts - use proper client data accessor functions
Signed-off-by:
Dmitry Torokhov
<
dtor@mail.ru
>
parent
468792eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
drivers/input/touchscreen/migor_ts.c
drivers/input/touchscreen/migor_ts.c
+4
-5
No files found.
drivers/input/touchscreen/migor_ts.c
View file @
ec208612
...
...
@@ -143,8 +143,6 @@ static int migor_ts_probe(struct i2c_client *client,
goto
err0
;
}
dev_set_drvdata
(
&
client
->
dev
,
priv
);
input
=
input_allocate_device
();
if
(
!
input
)
{
dev_err
(
&
client
->
dev
,
"Failed to allocate input device.
\n
"
);
...
...
@@ -183,6 +181,7 @@ static int migor_ts_probe(struct i2c_client *client,
goto
err2
;
}
i2c_set_clientdata
(
client
,
priv
);
device_init_wakeup
(
&
client
->
dev
,
1
);
return
0
;
...
...
@@ -199,7 +198,7 @@ static int migor_ts_probe(struct i2c_client *client,
static
int
migor_ts_remove
(
struct
i2c_client
*
client
)
{
struct
migor_ts_priv
*
priv
=
dev_get_drvdata
(
&
client
->
dev
);
struct
migor_ts_priv
*
priv
=
i2c_get_clientdata
(
client
);
free_irq
(
priv
->
irq
,
priv
);
input_unregister_device
(
priv
->
input
);
...
...
@@ -213,7 +212,7 @@ static int migor_ts_remove(struct i2c_client *client)
static
int
migor_ts_suspend
(
struct
device
*
dev
)
{
struct
i2c_client
*
client
=
to_i2c_client
(
dev
);
struct
migor_ts_priv
*
priv
=
dev_get_drvdata
(
&
client
->
dev
);
struct
migor_ts_priv
*
priv
=
i2c_get_clientdata
(
client
);
if
(
device_may_wakeup
(
&
client
->
dev
))
enable_irq_wake
(
priv
->
irq
);
...
...
@@ -224,7 +223,7 @@ static int migor_ts_suspend(struct device *dev)
static
int
migor_ts_resume
(
struct
device
*
dev
)
{
struct
i2c_client
*
client
=
to_i2c_client
(
dev
);
struct
migor_ts_priv
*
priv
=
dev_get_drvdata
(
&
client
->
dev
);
struct
migor_ts_priv
*
priv
=
i2c_get_clientdata
(
client
);
if
(
device_may_wakeup
(
&
client
->
dev
))
disable_irq_wake
(
priv
->
irq
);
...
...
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