diff options
author | Olof Johansson <olof@lixom.net> | 2011-12-23 10:20:44 +0100 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2011-12-24 10:06:06 +0100 |
commit | e948981aa0c97b6fcaa8626eeddb0340e175e9d7 (patch) | |
tree | 37d6dabf88fce7e488ffe9340c9ea8ce50326c78 /drivers/input/misc | |
parent | Input: sentelic - document the latest hardware (diff) | |
download | linux-e948981aa0c97b6fcaa8626eeddb0340e175e9d7.tar.xz linux-e948981aa0c97b6fcaa8626eeddb0340e175e9d7.zip |
Input: mpu3050 - add of_match table for device-tree probing
Adding invn,mpu3050 as the initial id.
Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/misc')
-rw-r--r-- | drivers/input/misc/mpu3050.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/input/misc/mpu3050.c b/drivers/input/misc/mpu3050.c index f71dc728da58..e9a57e3dba08 100644 --- 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), |