[alsa-devel] [PATCH 5/7] ASoC: ts3a227e: add acpi table

Mark Brown broonie at kernel.org
Tue Sep 12 16:54:48 CEST 2017


On Fri, Sep 08, 2017 at 08:30:37AM -0500, Pierre-Louis Bossart wrote:

> > >   		.of_match_table = of_match_ptr(ts3a227e_of_match),
> > > +		.acpi_match_table = ACPI_PTR(ts3a227e_acpi_match),

> > but then this would give compiler error on those systems as .acpi_match_table is
> > defined in driver core... can you compile this on non acpi and check

> This is not any different from what is done for other codecs.

> And the 0day checks did not report any issues, probably because the
> pre-processor takes the table out when CONFIG_ACPI is not enabled:

> #define ACPI_PTR(_ptr)	(NULL)

> so no change...

Right, this is the whole point of the of_match_ptr() and ACPI_PTR()
macros.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20170912/20ce82c0/attachment.sig>


More information about the Alsa-devel mailing list