regulator: ltc3589: Add OF device ID table
authorJavier Martinez Canillas <javier@osg.samsung.com>
Tue, 21 Feb 2017 14:29:04 +0000 (11:29 -0300)
committerMark Brown <broonie@kernel.org>
Tue, 21 Feb 2017 18:30:33 +0000 (10:30 -0800)
commit45a86172452a168f3157e2b0f16cfb113b43fa79
tree1200b4c1e18da758f3fb3d0eee9f6c4aea2ec4ef
parentfad9cd45edf558b5886219d58986a88a83926bbf
regulator: ltc3589: 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: Mark Brown <broonie@kernel.org>
drivers/regulator/ltc3589.c