Skip to content

Commit d51ba9c

Browse files
KAGA-KOKOsuryasaimadhu
authored andcommitted
ASoC: Intel: Convert to new X86 CPU match macros
The new macro set has a consistent namespace and uses C99 initializers instead of the grufty C89 ones. Get rid the of the local macro wrappers for consistency. Signed-off-by: Thomas Gleixner <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Reviewed-by: Greg Kroah-Hartman <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent f072251 commit d51ba9c

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

sound/soc/intel/common/soc-intel-quirks.h

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,11 @@
1515
#include <asm/intel-family.h>
1616
#include <asm/iosf_mbi.h>
1717

18-
#define ICPU(model) { X86_VENDOR_INTEL, 6, model, X86_FEATURE_ANY, }
19-
2018
#define SOC_INTEL_IS_CPU(soc, type) \
2119
static inline bool soc_intel_is_##soc(void) \
2220
{ \
2321
static const struct x86_cpu_id soc##_cpu_ids[] = { \
24-
ICPU(type), \
22+
X86_MATCH_INTEL_FAM6_MODEL(type, NULL), \
2523
{} \
2624
}; \
2725
const struct x86_cpu_id *id; \
@@ -32,11 +30,11 @@ static inline bool soc_intel_is_##soc(void) \
3230
return false; \
3331
}
3432

35-
SOC_INTEL_IS_CPU(byt, INTEL_FAM6_ATOM_SILVERMONT);
36-
SOC_INTEL_IS_CPU(cht, INTEL_FAM6_ATOM_AIRMONT);
37-
SOC_INTEL_IS_CPU(apl, INTEL_FAM6_ATOM_GOLDMONT);
38-
SOC_INTEL_IS_CPU(glk, INTEL_FAM6_ATOM_GOLDMONT_PLUS);
39-
SOC_INTEL_IS_CPU(cml, INTEL_FAM6_KABYLAKE_L);
33+
SOC_INTEL_IS_CPU(byt, ATOM_SILVERMONT);
34+
SOC_INTEL_IS_CPU(cht, ATOM_AIRMONT);
35+
SOC_INTEL_IS_CPU(apl, ATOM_GOLDMONT);
36+
SOC_INTEL_IS_CPU(glk, ATOM_GOLDMONT_PLUS);
37+
SOC_INTEL_IS_CPU(cml, KABYLAKE_L);
4038

4139
static inline bool soc_intel_is_byt_cr(struct platform_device *pdev)
4240
{

0 commit comments

Comments
 (0)