]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Input: qt1070 - add OF device ID table
authorJavier Martinez Canillas <javier@osg.samsung.com>
Thu, 23 Mar 2017 20:33:12 +0000 (13:33 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Mar 2018 08:23:22 +0000 (09:23 +0100)
commit359c65e5d1bf9f1a67473cd320d5a088aeabfc67
treebee594a853962505ec684b1f009b0aff640a3d3e
parent75e674419d547ecdaed2c60f3a267442928ec5f1
Input: qt1070 - add OF device ID table

[ Upstream commit cf5cd9d4480a87da78768718cac194a71079b5cb ]

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.

The compatible strings don't have a vendor prefix because that's how it's
used currently, and changing this will be a Device Tree ABI break.

Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/input/keyboard/qt1070.c