i2c: i801: Fix PCI ID sorting
authorJarkko Nikula <jarkko.nikula@linux.intel.com>
Mon, 1 Jul 2019 13:15:33 +0000 (16:15 +0300)
committerWolfram Sang <wsa@the-dreams.de>
Fri, 5 Jul 2019 18:59:10 +0000 (20:59 +0200)
I managed to break sorting in PCI ID defines in my last two patches:

commit 5cd1c56c42be ("i2c: i801: Add support for Intel Comet Lake")
commit 9be1485accd4 ("i2c: i801: Add support for Intel Elkhart Lake")

Fix them up.

Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Reviewed-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-i801.c

index 763a8d6cc3363ada66d38cf65d3bcffebd8f3495..dbcafbcc8e065127dfddce10b0545af219ca6ee1 100644 (file)
                                 STATUS_ERROR_FLAGS)
 
 /* Older devices have their ID defined in <linux/pci_ids.h> */
+#define PCI_DEVICE_ID_INTEL_COMETLAKE_SMBUS            0x02a3
 #define PCI_DEVICE_ID_INTEL_BAYTRAIL_SMBUS             0x0f12
 #define PCI_DEVICE_ID_INTEL_CDF_SMBUS                  0x18df
 #define PCI_DEVICE_ID_INTEL_DNV_SMBUS                  0x19df
 #define PCI_DEVICE_ID_INTEL_GEMINILAKE_SMBUS           0x31d4
 #define PCI_DEVICE_ID_INTEL_ICELAKE_LP_SMBUS           0x34a3
 #define PCI_DEVICE_ID_INTEL_5_3400_SERIES_SMBUS                0x3b30
+#define PCI_DEVICE_ID_INTEL_ELKHART_LAKE_SMBUS         0x4b23
 #define PCI_DEVICE_ID_INTEL_BROXTON_SMBUS              0x5ad4
 #define PCI_DEVICE_ID_INTEL_LYNXPOINT_SMBUS            0x8c22
 #define PCI_DEVICE_ID_INTEL_WILDCATPOINT_SMBUS         0x8ca2
 #define PCI_DEVICE_ID_INTEL_LEWISBURG_SSKU_SMBUS       0xa223
 #define PCI_DEVICE_ID_INTEL_KABYLAKE_PCH_H_SMBUS       0xa2a3
 #define PCI_DEVICE_ID_INTEL_CANNONLAKE_H_SMBUS         0xa323
-#define PCI_DEVICE_ID_INTEL_COMETLAKE_SMBUS            0x02a3
-#define PCI_DEVICE_ID_INTEL_ELKHART_LAKE_SMBUS         0x4b23
 
 struct i801_mux_config {
        char *gpio_chip;