OSDN Git Service

usb: phy: isp1301: Add OF device ID table
authorJavier Martinez Canillas <javier@osg.samsung.com>
Wed, 22 Feb 2017 18:23:22 +0000 (15:23 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Dec 2017 09:07:17 +0000 (10:07 +0100)
commit50fc2d4152fb03bfbdec186403ce5c49fd0ff77e
tree0b1990e9cba03a352b7692af86985b06aeb9a6e5
parentbf864220a59c51a676717cbee7f346a400c5ab47
usb: phy: isp1301: Add OF device ID table

[ Upstream commit fd567653bdb908009b650f079bfd4b63169e2ac4 ]

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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/phy/phy-isp1301.c