Javier Martinez Canillas ea22a26e67 ASoC: uda1380: 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.

Before this patch:

$ modinfo sound/soc/codecs/snd-soc-uda1380.ko | grep alias
alias:          i2c:uda1380

After this patch:

$ modinfo sound/soc/codecs/snd-soc-uda1380.ko | grep alias
alias:          of:N*T*Cnxp,uda1380C*
alias:          of:N*T*Cnxp,uda1380
alias:          i2c:uda1380

Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2017-04-05 18:21:16 +01:00
..
2015-11-06 11:04:07 -08:00
2015-10-05 17:42:49 +01:00
2016-11-09 13:50:14 +00:00
2014-04-07 10:48:50 +01:00
2015-07-07 13:35:13 +01:00
2014-08-16 17:17:13 -05:00
2015-08-28 17:17:29 +01:00
2016-08-08 11:55:20 +01:00
2016-05-30 16:15:55 +01:00
2016-04-28 18:16:04 +01:00
2015-03-11 19:16:07 +00:00
2016-01-27 20:23:20 +00:00
2016-11-14 11:23:17 +00:00
2015-12-19 12:02:18 +00:00
2016-10-24 18:03:14 +01:00
2016-10-24 18:03:14 +01:00
2016-11-14 11:37:57 +00:00
2014-07-02 20:49:25 +01:00
2016-10-24 18:31:38 +01:00
2016-06-26 12:28:13 +01:00
2015-07-13 11:51:35 +01:00
2015-04-08 19:25:40 +01:00