[alsa-devel] [PATCH 5/5] ASoC: mc13783: Add devicetree support

Mark Brown broonie at kernel.org
Tue Jan 7 12:08:12 CET 2014

On Tue, Jan 07, 2014 at 11:00:53AM +0400, Alexander Shiyan wrote:

> So, we need codec phandle.
> The codec is probed by MC13XXX MFD core, and codec pdev not contain
> compatible string, but we should associate our codec with DT.
> if ASoC core wants to use codec it will try to find it by of_node.
> Maybe my opinion is wrong, fixme.

The fact that we happen to use platform devices inside Linux to split
the MFD between subsystems isn't something that should leak out into the
device tree representation, this is a Linux implementation detail.  The
card should be referencing the root node for the device in its binding.

You're also confusing the idea of using an of_node for something with
putting it into the struct device; you should never need to modify
what's in the struct device to use the device tree data.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20140107/7bc456aa/attachment.sig>

More information about the Alsa-devel mailing list