lkml.org 
[lkml]   [2021]   [Oct]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 1/3] ASoC: soc-acpi: add alternative id field for machine driver matching
From
Date



> +static bool snd_soc_acpi_id_present(struct snd_soc_acpi_mach *machine)
> +{
> + struct snd_soc_acpi_codecs *id_alt = machine->id_alt;
> + int i;
> +
> + if (acpi_dev_present(machine->id, NULL, -1))
> + return true;
> +
> + if (id_alt == NULL)

if (!id_alt)

> + return false;
> +
> + for (i = 0; i < id_alt->num_codecs; i++) {
> + if (acpi_dev_present(id_alt->codecs[i], NULL, -1))
> + return true;
> + }
> +
> + return false;
> +}

\
 
 \ /
  Last update: 2021-10-06 18:59    [W:0.141 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site