13 Nov
2014
13 Nov
'14
8:13 p.m.
On Wed, Nov 12, 2014 at 11:22 PM, Lars-Peter Clausen lars@metafoo.de wrote:
On 11/13/2014 01:15 AM, Dylan Reid wrote:
+static struct snd_soc_codec_driver ts3a227e_codec_driver; [...]
ret = snd_soc_register_codec(&i2c->dev, &ts3a227e_codec_driver,
NULL, 0);
[...]
Since the driver doesn't need anything CODEC specific it could be made a component driver and then you can also use devm_snd_soc_register_component.
Thanks Lars. That makes registering the jack from the platform driver simpler too.