OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a196b2c
)
Input: mma8450 - drop unnecessary call to i2c_set_clientdata
author
Guenter Roeck
<linux@roeck-us.net>
Wed, 18 Jan 2017 19:41:01 +0000
(11:41 -0800)
committer
Dmitry Torokhov
<dmitry.torokhov@gmail.com>
Wed, 18 Jan 2017 19:49:14 +0000
(11:49 -0800)
There is no call to i2c_get_clientdata() or dev_get_drvdata().
Drop the unnecessary call to i2c_set_clientdata().
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/mma8450.c
patch
|
blob
|
history
diff --git
a/drivers/input/misc/mma8450.c
b/drivers/input/misc/mma8450.c
index
19c7357
..
b60cdea
100644
(file)
--- a/
drivers/input/misc/mma8450.c
+++ b/
drivers/input/misc/mma8450.c
@@
-205,8
+205,6
@@
static int mma8450_probe(struct i2c_client *c,
return err;
}
- i2c_set_clientdata(c, m);
-
return 0;
}