]> git.baikalelectronics.ru Git - kernel.git/commit
Input: synaptics_i2c - add OF device ID table
authorJavier Martinez Canillas <javier@osg.samsung.com>
Thu, 23 Mar 2017 20:31:50 +0000 (13:31 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 23 Mar 2017 21:46:32 +0000 (14:46 -0700)
commit45b742856693e7c5219d5b3816be170df1a6f7fc
treeef587d23ebd15cad576169ca553eea4ea5472376
parentc02fd7df2c6ff385ee9a5ffc650f7a1bac0fffca
Input: synaptics_i2c - add OF device ID table

The driver doesn't have a struct of_device_id table but supported devices
are registered via Device Trees. This is working on the assumption that a
I2C device registered via OF will always match a legacy I2C device ID and
that the MODALIAS reported will always be of the form i2c:<device>.

But this could change in the future so the correct approach is to have an
OF device ID table if the devices are registered via OF.

Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/synaptics_i2c.c