PCI: intel-mid: Convert to new X86 CPU match macros
authorThomas Gleixner <tglx@linutronix.de>
Fri, 20 Mar 2020 13:14:02 +0000 (14:14 +0100)
committerBorislav Petkov <bp@suse.de>
Tue, 24 Mar 2020 20:35:06 +0000 (21:35 +0100)
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 <tglx@linutronix.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://lkml.kernel.org/r/20200320131510.393113444@linutronix.de
drivers/pci/pci-mid.c

index 30fbe2ea6eab48bad6a974b423a4fe1aefe79224..aafd58da3a896cf655d3d0ea4fc51b34583acbcb 100644 (file)
@@ -55,15 +55,13 @@ static const struct pci_platform_pm_ops mid_pci_platform_pm = {
        .need_resume    = mid_pci_need_resume,
 };
 
-#define ICPU(model)    { X86_VENDOR_INTEL, 6, model, X86_FEATURE_ANY, }
-
 /*
  * This table should be in sync with the one in
  * arch/x86/platform/intel-mid/pwr.c.
  */
 static const struct x86_cpu_id lpss_cpu_ids[] = {
-       ICPU(INTEL_FAM6_ATOM_SALTWELL_MID),
-       ICPU(INTEL_FAM6_ATOM_SILVERMONT_MID),
+       X86_MATCH_INTEL_FAM6_MODEL(ATOM_SALTWELL_MID, NULL),
+       X86_MATCH_INTEL_FAM6_MODEL(ATOM_SILVERMONT_MID, NULL),
        {}
 };