12 Sep
2017
12 Sep
'17
2:54 p.m.
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.