projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e24f734
)
Input: mpu3050 - add of_match table for device-tree probing
author
Olof Johansson
<
[email protected]
>
Fri, 23 Dec 2011 09:20:44 +0000
(
01:20
-0800)
committer
Dmitry Torokhov
<
[email protected]
>
Sat, 24 Dec 2011 09:06:06 +0000
(
01:06
-0800)
Adding invn,mpu3050 as the initial id.
Signed-off-by: Olof Johansson <
[email protected]
>
Signed-off-by: Dmitry Torokhov <
[email protected]
>
drivers/input/misc/mpu3050.c
patch
|
blob
|
history
diff --git
a/drivers/input/misc/mpu3050.c
b/drivers/input/misc/mpu3050.c
index f71dc728da58adcad257da28f053b98fc29fa3fa..e9a57e3dba086c178e1e0bb80c689a06576c4e68 100644
(file)
--- a/
drivers/input/misc/mpu3050.c
+++ b/
drivers/input/misc/mpu3050.c
@@
-348,11
+348,18
@@
static const struct i2c_device_id mpu3050_ids[] = {
};
MODULE_DEVICE_TABLE(i2c, mpu3050_ids);
+static const struct of_device_id mpu3050_of_match[] = {
+ { .compatible = "invn,mpu3050", },
+ { },
+};
+MODULE_DEVICE_TABLE(of, mpu3050_of_match);
+
static struct i2c_driver mpu3050_i2c_driver = {
.driver = {
.name = "mpu3050",
.owner = THIS_MODULE,
.pm = &mpu3050_pm,
+ .of_match_table = mpu3050_of_match,
},
.probe = mpu3050_probe,
.remove = __devexit_p(mpu3050_remove),