From d426176e2469130a96717b3f2594daeab5d3fe34 Mon Sep 17 00:00:00 2001 From: Subrata Banik Date: Mon, 4 Sep 2023 17:41:29 +0000 Subject: drivers/wifi: Avoid camel casing in macro definition Convert camel case macros to uppercase and underscore separated macros, such as: PCI_DID_CyP_6SERIES_WIFI -> PCI_DID_CP_6SERIES_WIFI PCI_DID_TyP_6SERIES_WIFI -> PCI_DID_TP_6SERIES_WIFI This makes the macros more consistent with the rest of the code and easier to read. Change-Id: I9c739aab93dc0d043a3c9d9ce799087952c1e20b Signed-off-by: Subrata Banik Reviewed-on: https://review.coreboot.org/c/coreboot/+/77644 Reviewed-by: Ivy Jian Tested-by: build bot (Jenkins) Reviewed-by: Elyes Haouas Reviewed-by: Eric Lai Reviewed-by: Kapil Porwal --- src/drivers/wifi/generic/generic.c | 8 ++++---- src/include/device/pci_ids.h | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/drivers/wifi/generic/generic.c b/src/drivers/wifi/generic/generic.c index adcb68d0ff..4f849a3b08 100644 --- a/src/drivers/wifi/generic/generic.c +++ b/src/drivers/wifi/generic/generic.c @@ -103,10 +103,10 @@ static const unsigned short intel_pci_device_ids[] = { PCI_DID_WSP_8275_SERIES_1_WIFI, /* Thunder Peak 2 */ PCI_DID_TP_9260_SERIES_WIFI, - /* Cyclone Peak */ - PCI_DID_CyP_6SERIES_WIFI, - /* Typhoon Peak */ - PCI_DID_TyP_6SERIES_WIFI, + /* Cyclone Peak (CyP) */ + PCI_DID_CP_6SERIES_WIFI, + /* Typhoon Peak (TyP) */ + PCI_DID_TP_6SERIES_WIFI, 0 }; diff --git a/src/include/device/pci_ids.h b/src/include/device/pci_ids.h index 5893509b35..aea8638fe9 100644 --- a/src/include/device/pci_ids.h +++ b/src/include/device/pci_ids.h @@ -4510,8 +4510,8 @@ #define PCI_DID_SFP_8260_SERIES_2_WIFI 0x24f4 #define PCI_DID_WSP_8275_SERIES_1_WIFI 0x24fd #define PCI_DID_TP_9260_SERIES_WIFI 0x2526 -#define PCI_DID_CyP_6SERIES_WIFI 0x2723 -#define PCI_DID_TyP_6SERIES_WIFI 0x2725 +#define PCI_DID_CP_6SERIES_WIFI 0x2723 +#define PCI_DID_TP_6SERIES_WIFI 0x2725 #define PCI_DID_INTEL_TGL_IPU 0x9a19 #define PCI_DID_INTEL_TGL_H_IPU 0x9a39 -- cgit v1.2.3