]> git.karo-electronics.de Git - karo-tx-linux.git/blob - sound/soc/intel/common/sst-match-acpi.c
Merge branch 'akpm-current/current'
[karo-tx-linux.git] / sound / soc / intel / common / sst-match-acpi.c
1 /*
2  * sst_match_apci.c - SST (LPE) match for ACPI enumeration.
3  *
4  * Copyright (c) 2013-15, Intel Corporation.
5  *
6  *
7  * This program is free software; you can redistribute it and/or modify it
8  * under the terms and conditions of the GNU General Public License,
9  * version 2, as published by the Free Software Foundation.
10  *
11  * This program is distributed in the hope it will be useful, but WITHOUT
12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
14  * more details.
15  */
16
17 #include "sst-acpi.h"
18
19 struct sst_acpi_mach *sst_acpi_find_machine(struct sst_acpi_mach *machines)
20 {
21         struct sst_acpi_mach *mach;
22
23         for (mach = machines; mach->id[0]; mach++)
24                 if (acpi_dev_present(mach->id))
25                         return mach;
26
27         return NULL;
28 }
29 EXPORT_SYMBOL_GPL(sst_acpi_find_machine);
30
31 MODULE_LICENSE("GPL v2");
32 MODULE_DESCRIPTION("Intel Common ACPI Match module");