On 26/07/2023 09:20, Xi Ruoyao wrote:
On Wed, 2023-07-26 at 15:06 +0800, YingKun Meng wrote:Rather drop of_match_ptr so this can be used also on ACPI.
The ASoC Sound Card driver can be compile tested with !CONFIG_OFHmm, why not guard the definition with #ifdef CONFIG_OF instead?
making 'loongson_asoc_dt_ids' unused:
sound/soc/loongson/loongson_card.c:200:34: warning: unused variable
'loongson_asoc_dt_ids' [-Wunused-const-variable]
Source text is first and foremost for the human reader, not for the
compiler, and an ifdef clearly shows the condition when the definition
is not used.