ASoC: tfa9879: Export OF device ID as module alias
authorJavier Martinez Canillas <javierm@redhat.com>
Thu, 30 Nov 2017 17:56:16 +0000 (18:56 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 1 Dec 2017 12:50:10 +0000 (12:50 +0000)
commit56ae83f11db58a3a62d0d309efb84544f2c02e3b
treec36ab5f185ce11a1c2c39a3780d79ac283271d7a
parent4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323
ASoC: tfa9879: Export OF device ID as module alias

The I2C core always reports a MODALIAS of the form i2c:<foo> even if the
device was registered via OF, this means that exporting the OF device ID
table device aliases in the module is not needed. But in order to change
how the core reports modaliases to user-space, it's better to export it.

Before this patch:

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

After this patch:

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

Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tfa9879.c