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:04:52 +0000 (10:04 +0100)
commita1d72bc18e776f8c5fc5918fc4f4a2795f31a416
tree86ab51b39db1546021a48b81c3a5f71580890321
parent75252bfe9e493a314d62e820aea07a6c48dea833
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