include/device/device.h: Remove CHIP_NAME() macro
Macros can be confusing on their own; hiding commas make things worse.
This can sometimes be downright misleading. A "good" example would be
the code in soc/intel/xeon_sp/spr/chip.c:
CHIP_NAME("Intel SapphireRapids-SP").enable_dev = chip_enable_dev,
This appears as CHIP_NAME() being some struct when in fact these are
defining 2 separate members of the same struct.
It was decided to remove this macro altogether, as it does not do
anything special and incurs a maintenance burden.
Change-Id: Iaed6dfb144bddcf5c43634b0c955c19afce388f0
Signed-off-by: Nicholas Sudsgaard <devel+coreboot@nsudsgaard.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/80239
Reviewed-by: Yidi Lin <yidilin@google.com>
Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de>
Reviewed-by: Jakub Czapiga <czapiga@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Matt DeVillier <matt.devillier@amd.corp-partner.google.com>
diff --git a/src/drivers/acpi/thermal_zone/thermal_zone.c b/src/drivers/acpi/thermal_zone/thermal_zone.c
index 192e2e6..34fa1b8 100644
--- a/src/drivers/acpi/thermal_zone/thermal_zone.c
+++ b/src/drivers/acpi/thermal_zone/thermal_zone.c
@@ -126,6 +126,6 @@
}
struct chip_operations drivers_acpi_thermal_zone_ops = {
- CHIP_NAME("ACPI Thermal Zone")
+ .name = "ACPI Thermal Zone",
.enable_dev = thermal_zone_enable_dev,
};
diff --git a/src/drivers/amd/i2s_machine_dev/i2s_machine_dev.c b/src/drivers/amd/i2s_machine_dev/i2s_machine_dev.c
index 7bd256d..16ae48d 100644
--- a/src/drivers/amd/i2s_machine_dev/i2s_machine_dev.c
+++ b/src/drivers/amd/i2s_machine_dev/i2s_machine_dev.c
@@ -95,6 +95,6 @@
}
struct chip_operations drivers_amd_i2s_machine_dev_ops = {
- CHIP_NAME("AMD I2S Machine Device")
+ .name = "AMD I2S Machine Device",
.enable_dev = i2s_machine_dev_enable
};
diff --git a/src/drivers/crb/tis.c b/src/drivers/crb/tis.c
index 2c9128e..a5d7dcc 100644
--- a/src/drivers/crb/tis.c
+++ b/src/drivers/crb/tis.c
@@ -206,6 +206,6 @@
}
struct chip_operations drivers_crb_ops = {
- CHIP_NAME("CRB TPM")
+ .name = "CRB TPM",
.enable_dev = enable_dev
};
diff --git a/src/drivers/generic/adau7002/adau7002.c b/src/drivers/generic/adau7002/adau7002.c
index 63510cd..5917f69 100644
--- a/src/drivers/generic/adau7002/adau7002.c
+++ b/src/drivers/generic/adau7002/adau7002.c
@@ -67,6 +67,6 @@
}
struct chip_operations drivers_generic_adau7002_ops = {
- CHIP_NAME("Analog Digital DMIC")
+ .name = "Analog Digital DMIC",
.enable_dev = adau7002_enable
};
diff --git a/src/drivers/generic/alc1015/alc1015.c b/src/drivers/generic/alc1015/alc1015.c
index ca685d6..7245f0c 100644
--- a/src/drivers/generic/alc1015/alc1015.c
+++ b/src/drivers/generic/alc1015/alc1015.c
@@ -70,6 +70,6 @@
}
struct chip_operations drivers_generic_alc1015_ops = {
- CHIP_NAME("ASoC RT1015P Amplifier driver")
+ .name = "ASoC RT1015P Amplifier driver",
.enable_dev = alc1015_enable
};
diff --git a/src/drivers/generic/bayhub/bh720.c b/src/drivers/generic/bayhub/bh720.c
index 02abc22..5104c35 100644
--- a/src/drivers/generic/bayhub/bh720.c
+++ b/src/drivers/generic/bayhub/bh720.c
@@ -166,5 +166,5 @@
};
struct chip_operations drivers_generic_bayhub_ops = {
- CHIP_NAME("BayHub Technology BH720 PCI to eMMC 5.0 HS200 bridge")
+ .name = "BayHub Technology BH720 PCI to eMMC 5.0 HS200 bridge",
};
diff --git a/src/drivers/generic/bayhub_lv2/lv2.c b/src/drivers/generic/bayhub_lv2/lv2.c
index b8d4113..b2b85e1 100644
--- a/src/drivers/generic/bayhub_lv2/lv2.c
+++ b/src/drivers/generic/bayhub_lv2/lv2.c
@@ -81,5 +81,5 @@
};
struct chip_operations drivers_generic_bayhub_lv2_ops = {
- CHIP_NAME("BayHub Technology LV2 PCIe to SD bridge")
+ .name = "BayHub Technology LV2 PCIe to SD bridge",
};
diff --git a/src/drivers/generic/gpio_keys/gpio_keys.c b/src/drivers/generic/gpio_keys/gpio_keys.c
index c0fd8de..28e5be5 100644
--- a/src/drivers/generic/gpio_keys/gpio_keys.c
+++ b/src/drivers/generic/gpio_keys/gpio_keys.c
@@ -120,6 +120,6 @@
}
struct chip_operations drivers_generic_gpio_keys_ops = {
- CHIP_NAME("GPIO Keys")
+ .name = "GPIO Keys",
.enable_dev = gpio_keys_enable
};
diff --git a/src/drivers/generic/max98357a/max98357a.c b/src/drivers/generic/max98357a/max98357a.c
index 7a18b98..8ce80f1 100644
--- a/src/drivers/generic/max98357a/max98357a.c
+++ b/src/drivers/generic/max98357a/max98357a.c
@@ -93,6 +93,6 @@
}
struct chip_operations drivers_generic_max98357a_ops = {
- CHIP_NAME("Maxim Integrated 98357A Amplifier")
+ .name = "Maxim Integrated 98357A Amplifier",
.enable_dev = max98357a_enable
};
diff --git a/src/drivers/generic/nau8315/nau8315.c b/src/drivers/generic/nau8315/nau8315.c
index ac2bfd1..8fe4e1f 100644
--- a/src/drivers/generic/nau8315/nau8315.c
+++ b/src/drivers/generic/nau8315/nau8315.c
@@ -71,6 +71,6 @@
}
struct chip_operations drivers_generic_nau8315_ops = {
- CHIP_NAME("Nuvoton NAU8315 Amplifier")
+ .name = "Nuvoton NAU8315 Amplifier",
.enable_dev = nau8315_enable
};
diff --git a/src/drivers/genesyslogic/gl9750/gl9750.c b/src/drivers/genesyslogic/gl9750/gl9750.c
index 8c40c49..92d96be 100644
--- a/src/drivers/genesyslogic/gl9750/gl9750.c
+++ b/src/drivers/genesyslogic/gl9750/gl9750.c
@@ -50,5 +50,5 @@
};
struct chip_operations drivers_generic_genesyslogic_gl9750_ops = {
- CHIP_NAME("Genesys Logic GL9750")
+ .name = "Genesys Logic GL9750",
};
diff --git a/src/drivers/genesyslogic/gl9755/gl9755.c b/src/drivers/genesyslogic/gl9755/gl9755.c
index bf4831c..6b8dd7d 100644
--- a/src/drivers/genesyslogic/gl9755/gl9755.c
+++ b/src/drivers/genesyslogic/gl9755/gl9755.c
@@ -58,5 +58,5 @@
};
struct chip_operations drivers_generic_genesyslogic_gl9755_ops = {
- CHIP_NAME("Genesys Logic GL9755")
+ .name = "Genesys Logic GL9755",
};
diff --git a/src/drivers/genesyslogic/gl9763e/gl9763e.c b/src/drivers/genesyslogic/gl9763e/gl9763e.c
index a4842e8..140535d 100644
--- a/src/drivers/genesyslogic/gl9763e/gl9763e.c
+++ b/src/drivers/genesyslogic/gl9763e/gl9763e.c
@@ -66,5 +66,5 @@
};
struct chip_operations drivers_generic_genesyslogic_ops = {
- CHIP_NAME("Genesys Logic GL9763E")
+ .name = "Genesys Logic GL9763E",
};
diff --git a/src/drivers/gfx/generic/generic.c b/src/drivers/gfx/generic/generic.c
index 0ab1676..e3ae62f 100644
--- a/src/drivers/gfx/generic/generic.c
+++ b/src/drivers/gfx/generic/generic.c
@@ -160,6 +160,6 @@
}
struct chip_operations drivers_gfx_generic_ops = {
- CHIP_NAME("Generic Graphics Device")
+ .name = "Generic Graphics Device",
.enable_dev = gfx_enable
};
diff --git a/src/drivers/i2c/at24rf08c/at24rf08c.c b/src/drivers/i2c/at24rf08c/at24rf08c.c
index ce6aa86..99ea7a4 100644
--- a/src/drivers/i2c/at24rf08c/at24rf08c.c
+++ b/src/drivers/i2c/at24rf08c/at24rf08c.c
@@ -41,6 +41,6 @@
}
struct chip_operations drivers_i2c_at24rf08c_ops = {
- CHIP_NAME("AT24RF08C")
+ .name = "AT24RF08C",
.enable_dev = enable_dev,
};
diff --git a/src/drivers/i2c/ck505/ck505.c b/src/drivers/i2c/ck505/ck505.c
index 58eaec6..db660fe 100644
--- a/src/drivers/i2c/ck505/ck505.c
+++ b/src/drivers/i2c/ck505/ck505.c
@@ -55,6 +55,6 @@
}
struct chip_operations drivers_i2c_ck505_ops = {
- CHIP_NAME("CK505 Clock generator")
+ .name = "CK505 Clock generator",
.enable_dev = enable_dev,
};
diff --git a/src/drivers/i2c/cs35l53/cs35l53.c b/src/drivers/i2c/cs35l53/cs35l53.c
index 9857203..578e272 100644
--- a/src/drivers/i2c/cs35l53/cs35l53.c
+++ b/src/drivers/i2c/cs35l53/cs35l53.c
@@ -145,6 +145,6 @@
}
struct chip_operations drivers_i2c_cs35l53_ops = {
- CHIP_NAME("Cirrus Logic CS35L53 Audio Codec")
+ .name = "Cirrus Logic CS35L53 Audio Codec",
.enable_dev = cs35l53_enable
};
diff --git a/src/drivers/i2c/cs42l42/cs42l42.c b/src/drivers/i2c/cs42l42/cs42l42.c
index dcf83e0..8ccfd77 100644
--- a/src/drivers/i2c/cs42l42/cs42l42.c
+++ b/src/drivers/i2c/cs42l42/cs42l42.c
@@ -118,6 +118,6 @@
}
struct chip_operations drivers_i2c_cs42l42_ops = {
- CHIP_NAME("Cirrus Logic CS42l42 Audio Codec")
+ .name = "Cirrus Logic CS42l42 Audio Codec",
.enable_dev = cs42l42_enable
};
diff --git a/src/drivers/i2c/da7219/da7219.c b/src/drivers/i2c/da7219/da7219.c
index 80c5272..1a149ca 100644
--- a/src/drivers/i2c/da7219/da7219.c
+++ b/src/drivers/i2c/da7219/da7219.c
@@ -110,6 +110,6 @@
}
struct chip_operations drivers_i2c_da7219_ops = {
- CHIP_NAME("Dialog Semiconductor DA7219 Audio Codec")
+ .name = "Dialog Semiconductor DA7219 Audio Codec",
.enable_dev = da7219_enable
};
diff --git a/src/drivers/i2c/generic/generic.c b/src/drivers/i2c/generic/generic.c
index 1a3ec40..2a4acb2 100644
--- a/src/drivers/i2c/generic/generic.c
+++ b/src/drivers/i2c/generic/generic.c
@@ -229,6 +229,6 @@
}
struct chip_operations drivers_i2c_generic_ops = {
- CHIP_NAME("I2C Device")
+ .name = "I2C Device",
.enable_dev = i2c_generic_enable
};
diff --git a/src/drivers/i2c/gpiomux/bus/bus.c b/src/drivers/i2c/gpiomux/bus/bus.c
index 2bdb1030..a6c603a 100644
--- a/src/drivers/i2c/gpiomux/bus/bus.c
+++ b/src/drivers/i2c/gpiomux/bus/bus.c
@@ -55,6 +55,6 @@
}
struct chip_operations drivers_i2c_gpiomux_bus_ops = {
- CHIP_NAME("I2C GPIO MUX Bus Device")
+ .name = "I2C GPIO MUX Bus Device",
.enable_dev = i2c_gpiomux_bus_enable
};
diff --git a/src/drivers/i2c/gpiomux/mux/mux.c b/src/drivers/i2c/gpiomux/mux/mux.c
index fa1b18c..5f79fe5 100644
--- a/src/drivers/i2c/gpiomux/mux/mux.c
+++ b/src/drivers/i2c/gpiomux/mux/mux.c
@@ -77,6 +77,6 @@
}
struct chip_operations drivers_i2c_gpiomux_mux_ops = {
- CHIP_NAME("I2C GPIO MUX Device")
+ .name = "I2C GPIO MUX Device",
.enable_dev = i2c_gpiomux_mux_enable
};
diff --git a/src/drivers/i2c/hid/hid.c b/src/drivers/i2c/hid/hid.c
index 8705c1e..fb3a439 100644
--- a/src/drivers/i2c/hid/hid.c
+++ b/src/drivers/i2c/hid/hid.c
@@ -90,6 +90,6 @@
}
struct chip_operations drivers_i2c_hid_ops = {
- CHIP_NAME("I2C HID Device")
+ .name = "I2C HID Device",
.enable_dev = i2c_hid_enable
};
diff --git a/src/drivers/i2c/lm96000/lm96000.c b/src/drivers/i2c/lm96000/lm96000.c
index a2b7a21..f17d8c0 100644
--- a/src/drivers/i2c/lm96000/lm96000.c
+++ b/src/drivers/i2c/lm96000/lm96000.c
@@ -215,6 +215,6 @@
}
struct chip_operations drivers_i2c_lm96000_ops = {
- CHIP_NAME("LM96000")
+ .name = "LM96000",
.enable_dev = lm96000_enable
};
diff --git a/src/drivers/i2c/max98373/max98373.c b/src/drivers/i2c/max98373/max98373.c
index eb5590d..37a8864 100644
--- a/src/drivers/i2c/max98373/max98373.c
+++ b/src/drivers/i2c/max98373/max98373.c
@@ -90,6 +90,6 @@
}
struct chip_operations drivers_i2c_max98373_ops = {
- CHIP_NAME("Maxim MAX98373 Codec")
+ .name = "Maxim MAX98373 Codec",
.enable_dev = max98373_enable
};
diff --git a/src/drivers/i2c/max98390/max98390.c b/src/drivers/i2c/max98390/max98390.c
index 11acd22..f4c4a70 100644
--- a/src/drivers/i2c/max98390/max98390.c
+++ b/src/drivers/i2c/max98390/max98390.c
@@ -129,6 +129,6 @@
}
struct chip_operations drivers_i2c_max98390_ops = {
- CHIP_NAME("Maxim MAX98390 Codec")
+ .name = "Maxim MAX98390 Codec",
.enable_dev = max98390_enable
};
diff --git a/src/drivers/i2c/max98396/max98396.c b/src/drivers/i2c/max98396/max98396.c
index 5288c4f..6ad3931 100644
--- a/src/drivers/i2c/max98396/max98396.c
+++ b/src/drivers/i2c/max98396/max98396.c
@@ -96,6 +96,6 @@
}
struct chip_operations drivers_i2c_max98396_ops = {
- CHIP_NAME("Maxim MAX98396 Codec")
+ .name = "Maxim MAX98396 Codec",
.enable_dev = max98396_enable
};
diff --git a/src/drivers/i2c/max98927/max98927.c b/src/drivers/i2c/max98927/max98927.c
index e80f569f..9935d10 100644
--- a/src/drivers/i2c/max98927/max98927.c
+++ b/src/drivers/i2c/max98927/max98927.c
@@ -86,6 +86,6 @@
}
struct chip_operations drivers_i2c_max98927_ops = {
- CHIP_NAME("Maxim MAX98927 Codec")
+ .name = "Maxim MAX98927 Codec",
.enable_dev = max98927_enable
};
diff --git a/src/drivers/i2c/nau8825/nau8825.c b/src/drivers/i2c/nau8825/nau8825.c
index 060df7c..9e82538 100644
--- a/src/drivers/i2c/nau8825/nau8825.c
+++ b/src/drivers/i2c/nau8825/nau8825.c
@@ -103,6 +103,6 @@
}
struct chip_operations drivers_i2c_nau8825_ops = {
- CHIP_NAME("Nuvoton NAU8825 Codec")
+ .name = "Nuvoton NAU8825 Codec",
.enable_dev = nau8825_enable
};
diff --git a/src/drivers/i2c/nct7802y/nct7802y.c b/src/drivers/i2c/nct7802y/nct7802y.c
index bb52a3f..f313ef7 100644
--- a/src/drivers/i2c/nct7802y/nct7802y.c
+++ b/src/drivers/i2c/nct7802y/nct7802y.c
@@ -45,6 +45,6 @@
}
struct chip_operations drivers_i2c_nct7802y_ops = {
- CHIP_NAME("NCT7802Y")
+ .name = "NCT7802Y",
.enable_dev = nct7802y_enable
};
diff --git a/src/drivers/i2c/pca9538/pca9538.c b/src/drivers/i2c/pca9538/pca9538.c
index 1658b9e..f8933ec 100644
--- a/src/drivers/i2c/pca9538/pca9538.c
+++ b/src/drivers/i2c/pca9538/pca9538.c
@@ -49,6 +49,6 @@
}
struct chip_operations drivers_i2c_pca9538_ops = {
- CHIP_NAME("PCA9538")
+ .name = "PCA9538",
.enable_dev = pca9538_enable
};
diff --git a/src/drivers/i2c/pcf8523/pcf8523.c b/src/drivers/i2c/pcf8523/pcf8523.c
index 8d368b2..717bc90 100644
--- a/src/drivers/i2c/pcf8523/pcf8523.c
+++ b/src/drivers/i2c/pcf8523/pcf8523.c
@@ -129,6 +129,6 @@
}
struct chip_operations drivers_i2c_pcf8523_ops = {
- CHIP_NAME("PCF8523")
+ .name = "PCF8523",
.enable_dev = pcf8523_enable
};
diff --git a/src/drivers/i2c/pi608gp/pi608gp.c b/src/drivers/i2c/pi608gp/pi608gp.c
index 2c61a80..62d462e 100644
--- a/src/drivers/i2c/pi608gp/pi608gp.c
+++ b/src/drivers/i2c/pi608gp/pi608gp.c
@@ -188,5 +188,5 @@
};
struct chip_operations drivers_i2c_pi608gp_ops = {
- CHIP_NAME("PI7C9X2G608GP")
+ .name = "PI7C9X2G608GP",
};
diff --git a/src/drivers/i2c/ptn3460/ptn3460.c b/src/drivers/i2c/ptn3460/ptn3460.c
index 7dee222..93acb18 100644
--- a/src/drivers/i2c/ptn3460/ptn3460.c
+++ b/src/drivers/i2c/ptn3460/ptn3460.c
@@ -148,7 +148,7 @@
}
struct chip_operations drivers_i2c_ptn3460_ops = {
- CHIP_NAME("PTN3460")
+ .name = "PTN3460",
.enable_dev = ptn3460_enable
};
diff --git a/src/drivers/i2c/rt1011/rt1011.c b/src/drivers/i2c/rt1011/rt1011.c
index 9a21748..bf62a6f 100644
--- a/src/drivers/i2c/rt1011/rt1011.c
+++ b/src/drivers/i2c/rt1011/rt1011.c
@@ -103,6 +103,6 @@
}
struct chip_operations drivers_i2c_rt1011_ops = {
- CHIP_NAME("Realtek RT1011 Codec")
+ .name = "Realtek RT1011 Codec",
.enable_dev = rt1011_enable
};
diff --git a/src/drivers/i2c/rt5663/rt5663.c b/src/drivers/i2c/rt5663/rt5663.c
index 9949566..e2341dd 100644
--- a/src/drivers/i2c/rt5663/rt5663.c
+++ b/src/drivers/i2c/rt5663/rt5663.c
@@ -84,6 +84,6 @@
}
struct chip_operations drivers_i2c_rt5663_ops = {
- CHIP_NAME("Realtek RT5663 Codec")
+ .name = "Realtek RT5663 Codec",
.enable_dev = rt5663_enable
};
diff --git a/src/drivers/i2c/rtd2132/rtd2132.c b/src/drivers/i2c/rtd2132/rtd2132.c
index 41dd887..82b032e 100644
--- a/src/drivers/i2c/rtd2132/rtd2132.c
+++ b/src/drivers/i2c/rtd2132/rtd2132.c
@@ -235,6 +235,6 @@
}
struct chip_operations drivers_i2c_rtd2132_ops = {
- CHIP_NAME("Realtek RTD2132 LVDS Bridge")
+ .name = "Realtek RTD2132 LVDS Bridge",
.enable_dev = enable_dev,
};
diff --git a/src/drivers/i2c/rv3028c7/rv3028c7.c b/src/drivers/i2c/rv3028c7/rv3028c7.c
index 87cbc24..0a1e4b6 100644
--- a/src/drivers/i2c/rv3028c7/rv3028c7.c
+++ b/src/drivers/i2c/rv3028c7/rv3028c7.c
@@ -251,6 +251,6 @@
}
struct chip_operations drivers_i2c_rv3028c7_ops = {
- CHIP_NAME("RV-3028-C7")
+ .name = "RV-3028-C7",
.enable_dev = rtc_enable
};
diff --git a/src/drivers/i2c/rx6110sa/rx6110sa.c b/src/drivers/i2c/rx6110sa/rx6110sa.c
index 02b3d9f..ce5051d 100644
--- a/src/drivers/i2c/rx6110sa/rx6110sa.c
+++ b/src/drivers/i2c/rx6110sa/rx6110sa.c
@@ -239,6 +239,6 @@
}
struct chip_operations drivers_i2c_rx6110sa_ops = {
- CHIP_NAME("RX6110 SA")
+ .name = "RX6110 SA",
.enable_dev = rx6110sa_enable
};
diff --git a/src/drivers/i2c/sx9310/sx9310.c b/src/drivers/i2c/sx9310/sx9310.c
index 68aea6c..5094608 100644
--- a/src/drivers/i2c/sx9310/sx9310.c
+++ b/src/drivers/i2c/sx9310/sx9310.c
@@ -131,6 +131,6 @@
}
struct chip_operations drivers_i2c_sx9310_ops = {
- CHIP_NAME(I2C_SX9310_ACPI_NAME)
+ .name = I2C_SX9310_ACPI_NAME,
.enable_dev = i2c_sx9310_enable
};
diff --git a/src/drivers/i2c/sx9324/sx9324.c b/src/drivers/i2c/sx9324/sx9324.c
index 3678491..05aca00 100644
--- a/src/drivers/i2c/sx9324/sx9324.c
+++ b/src/drivers/i2c/sx9324/sx9324.c
@@ -115,6 +115,6 @@
}
struct chip_operations drivers_i2c_sx9324_ops = {
- CHIP_NAME(I2C_SX9324_CHIP_NAME)
+ .name = I2C_SX9324_CHIP_NAME,
.enable_dev = i2c_sx9324_enable
};
diff --git a/src/drivers/i2c/sx9360/sx9360.c b/src/drivers/i2c/sx9360/sx9360.c
index 9ea4c8b..c9de0de 100644
--- a/src/drivers/i2c/sx9360/sx9360.c
+++ b/src/drivers/i2c/sx9360/sx9360.c
@@ -102,6 +102,6 @@
}
struct chip_operations drivers_i2c_sx9360_ops = {
- CHIP_NAME(I2C_SX9360_CHIP_NAME)
+ .name = I2C_SX9360_CHIP_NAME,
.enable_dev = i2c_sx9360_enable
};
diff --git a/src/drivers/i2c/tas5825m/tas5825m.c b/src/drivers/i2c/tas5825m/tas5825m.c
index 39e5575..9f14059 100644
--- a/src/drivers/i2c/tas5825m/tas5825m.c
+++ b/src/drivers/i2c/tas5825m/tas5825m.c
@@ -75,6 +75,6 @@
}
struct chip_operations drivers_i2c_tas5825m_ops = {
- CHIP_NAME("TI TAS5825M Amplifier")
+ .name = "TI TAS5825M Amplifier",
.enable_dev = tas5825m_enable_dev,
};
diff --git a/src/drivers/i2c/tpm/chip.c b/src/drivers/i2c/tpm/chip.c
index 07052f6..a1d7389 100644
--- a/src/drivers/i2c/tpm/chip.c
+++ b/src/drivers/i2c/tpm/chip.c
@@ -95,6 +95,6 @@
}
struct chip_operations drivers_i2c_tpm_ops = {
- CHIP_NAME("I2C TPM")
+ .name = "I2C TPM",
.enable_dev = i2c_tpm_enable
};
diff --git a/src/drivers/intel/dptf/dptf.c b/src/drivers/intel/dptf/dptf.c
index 71a4ec3..bceb0de 100644
--- a/src/drivers/intel/dptf/dptf.c
+++ b/src/drivers/intel/dptf/dptf.c
@@ -636,6 +636,6 @@
}
struct chip_operations drivers_intel_dptf_ops = {
- CHIP_NAME("Intel DPTF")
+ .name = "Intel DPTF",
.enable_dev = dptf_enable_dev,
};
diff --git a/src/drivers/intel/ish/ish.c b/src/drivers/intel/ish/ish.c
index 9711632..6dba46a 100644
--- a/src/drivers/intel/ish/ish.c
+++ b/src/drivers/intel/ish/ish.c
@@ -97,6 +97,6 @@
};
struct chip_operations drivers_intel_ish_ops = {
- CHIP_NAME("Intel ISH Chip")
+ .name = "Intel ISH Chip",
.enable_dev = intel_ish_enable,
};
diff --git a/src/drivers/intel/mipi_camera/camera.c b/src/drivers/intel/mipi_camera/camera.c
index 00c85a7..77c86ea 100644
--- a/src/drivers/intel/mipi_camera/camera.c
+++ b/src/drivers/intel/mipi_camera/camera.c
@@ -1033,6 +1033,6 @@
}
struct chip_operations drivers_intel_mipi_camera_ops = {
- CHIP_NAME("Intel MIPI Camera Device")
+ .name = "Intel MIPI Camera Device",
.enable_dev = camera_enable
};
diff --git a/src/drivers/intel/pmc_mux/conn/conn.c b/src/drivers/intel/pmc_mux/conn/conn.c
index de8f2be..c2c7199 100644
--- a/src/drivers/intel/pmc_mux/conn/conn.c
+++ b/src/drivers/intel/pmc_mux/conn/conn.c
@@ -153,7 +153,7 @@
}
struct chip_operations drivers_intel_pmc_mux_conn_ops = {
- CHIP_NAME("Intel PMC MUX CONN Driver")
+ .name = "Intel PMC MUX CONN Driver",
.enable_dev = conn_enable,
};
diff --git a/src/drivers/intel/pmc_mux/mux.c b/src/drivers/intel/pmc_mux/mux.c
index e209915..64669f6 100644
--- a/src/drivers/intel/pmc_mux/mux.c
+++ b/src/drivers/intel/pmc_mux/mux.c
@@ -43,6 +43,6 @@
}
struct chip_operations drivers_intel_pmc_mux_ops = {
- CHIP_NAME("Intel PMC MUX Driver")
+ .name = "Intel PMC MUX Driver",
.enable_dev = mux_enable,
};
diff --git a/src/drivers/intel/soundwire/soundwire.c b/src/drivers/intel/soundwire/soundwire.c
index c7e84a5..f9421fc 100644
--- a/src/drivers/intel/soundwire/soundwire.c
+++ b/src/drivers/intel/soundwire/soundwire.c
@@ -94,6 +94,6 @@
}
struct chip_operations drivers_intel_soundwire_ops = {
- CHIP_NAME("Intel SoundWire Controller")
+ .name = "Intel SoundWire Controller",
.enable_dev = intel_soundwire_enable
};
diff --git a/src/drivers/intel/usb4/retimer/retimer.c b/src/drivers/intel/usb4/retimer/retimer.c
index 7fb600d..9704139 100644
--- a/src/drivers/intel/usb4/retimer/retimer.c
+++ b/src/drivers/intel/usb4/retimer/retimer.c
@@ -460,7 +460,7 @@
}
struct chip_operations drivers_intel_usb4_retimer_ops = {
- CHIP_NAME("Intel USB4 Retimer")
+ .name = "Intel USB4 Retimer",
.enable_dev = usb4_retimer_enable
};
diff --git a/src/drivers/ipmi/ipmi_kcs_ops.c b/src/drivers/ipmi/ipmi_kcs_ops.c
index 2e5378f..69db489 100644
--- a/src/drivers/ipmi/ipmi_kcs_ops.c
+++ b/src/drivers/ipmi/ipmi_kcs_ops.c
@@ -360,6 +360,6 @@
}
struct chip_operations drivers_ipmi_ops = {
- CHIP_NAME("IPMI KCS")
+ .name = "IPMI KCS",
.enable_dev = enable_dev,
};
diff --git a/src/drivers/ipmi/ocp/ipmi_ocp.c b/src/drivers/ipmi/ocp/ipmi_ocp.c
index e75edca..0f003af 100644
--- a/src/drivers/ipmi/ocp/ipmi_ocp.c
+++ b/src/drivers/ipmi/ocp/ipmi_ocp.c
@@ -95,6 +95,6 @@
}
struct chip_operations drivers_ipmi_ocp_ops = {
- CHIP_NAME("IPMI OCP")
+ .name = "IPMI OCP",
.enable_dev = enable_dev,
};
diff --git a/src/drivers/lenovo/hybrid_graphics/hybrid_graphics.c b/src/drivers/lenovo/hybrid_graphics/hybrid_graphics.c
index 7a5e20d..1fda1fd 100644
--- a/src/drivers/lenovo/hybrid_graphics/hybrid_graphics.c
+++ b/src/drivers/lenovo/hybrid_graphics/hybrid_graphics.c
@@ -53,6 +53,6 @@
}
struct chip_operations drivers_lenovo_hybrid_graphics_ops = {
- CHIP_NAME("Lenovo hybrid graphics driver")
+ .name = "Lenovo hybrid graphics driver",
.enable_dev = lenovo_hybrid_graphics_enable
};
diff --git a/src/drivers/net/atl1e.c b/src/drivers/net/atl1e.c
index fb9bcde..fe85b83 100644
--- a/src/drivers/net/atl1e.c
+++ b/src/drivers/net/atl1e.c
@@ -153,5 +153,5 @@
};
struct chip_operations drivers_net_ops = {
- CHIP_NAME("Atheros AR8121/AR8113/AR8114")
+ .name = "Atheros AR8121/AR8113/AR8114",
};
diff --git a/src/drivers/net/phy/m88e1512/m88e1512.c b/src/drivers/net/phy/m88e1512/m88e1512.c
index 2e8994c..07110c6 100644
--- a/src/drivers/net/phy/m88e1512/m88e1512.c
+++ b/src/drivers/net/phy/m88e1512/m88e1512.c
@@ -97,5 +97,5 @@
};
struct chip_operations drivers_net_phy_m88e1512_ops = {
- CHIP_NAME("88E1512")
+ .name = "88E1512",
};
diff --git a/src/drivers/net/r8168.c b/src/drivers/net/r8168.c
index f21edd0..70a0f63 100644
--- a/src/drivers/net/r8168.c
+++ b/src/drivers/net/r8168.c
@@ -441,5 +441,5 @@
};
struct chip_operations drivers_net_ops = {
- CHIP_NAME("Realtek r8168")
+ .name = "Realtek r8168",
};
diff --git a/src/drivers/nxp/uwb/uwb.c b/src/drivers/nxp/uwb/uwb.c
index 978edeb..0f5ba47 100644
--- a/src/drivers/nxp/uwb/uwb.c
+++ b/src/drivers/nxp/uwb/uwb.c
@@ -133,6 +133,6 @@
}
struct chip_operations drivers_nxp_uwb_ops = {
- CHIP_NAME("NXP UWB Device")
+ .name = "NXP UWB Device",
.enable_dev = nxb_uwb_enable
};
diff --git a/src/drivers/pc80/tpm/tis.c b/src/drivers/pc80/tpm/tis.c
index 019e4a1..2099bb7 100644
--- a/src/drivers/pc80/tpm/tis.c
+++ b/src/drivers/pc80/tpm/tis.c
@@ -854,6 +854,6 @@
}
struct chip_operations drivers_pc80_tpm_ops = {
- CHIP_NAME("LPC TPM")
+ .name = "LPC TPM",
.enable_dev = enable_dev
};
diff --git a/src/drivers/pcie/generic/generic.c b/src/drivers/pcie/generic/generic.c
index 1873e65..1b7976e 100644
--- a/src/drivers/pcie/generic/generic.c
+++ b/src/drivers/pcie/generic/generic.c
@@ -68,6 +68,6 @@
}
struct chip_operations drivers_pcie_generic_ops = {
- CHIP_NAME("PCIe Device")
+ .name = "PCIe Device",
.enable_dev = pcie_generic_enable
};
diff --git a/src/drivers/pcie/rtd3/device/chip.c b/src/drivers/pcie/rtd3/device/chip.c
index 88b85f1..314aff8 100644
--- a/src/drivers/pcie/rtd3/device/chip.c
+++ b/src/drivers/pcie/rtd3/device/chip.c
@@ -150,6 +150,6 @@
}
struct chip_operations drivers_pcie_rtd3_device_ops = {
- CHIP_NAME("PCIe Device w/ Runtime D3")
+ .name = "PCIe Device w/ Runtime D3",
.enable_dev = pcie_rtd3_device_enable
};
diff --git a/src/drivers/ricoh/rce822/rce822.c b/src/drivers/ricoh/rce822/rce822.c
index c85b4d1..f1cba75 100644
--- a/src/drivers/ricoh/rce822/rce822.c
+++ b/src/drivers/ricoh/rce822/rce822.c
@@ -58,5 +58,5 @@
};
struct chip_operations drivers_ricoh_rce822_ops = {
- CHIP_NAME("RICOH RCE822")
+ .name = "RICOH RCE822",
};
diff --git a/src/drivers/secunet/dmi/smbios.c b/src/drivers/secunet/dmi/smbios.c
index f407b51..fb8d75a 100644
--- a/src/drivers/secunet/dmi/smbios.c
+++ b/src/drivers/secunet/dmi/smbios.c
@@ -91,6 +91,6 @@
}
struct chip_operations drivers_secunet_dmi_ops = {
- CHIP_NAME("secunet DMI")
+ .name = "secunet DMI",
.enable_dev = enable_dev,
};
diff --git a/src/drivers/sof/sof.c b/src/drivers/sof/sof.c
index b353790..db945aa 100644
--- a/src/drivers/sof/sof.c
+++ b/src/drivers/sof/sof.c
@@ -85,6 +85,6 @@
}
struct chip_operations drivers_sof_ops = {
- CHIP_NAME("SOF")
+ .name = "SOF",
.enable_dev = sof_enable
};
diff --git a/src/drivers/soundwire/alc1308/alc1308.c b/src/drivers/soundwire/alc1308/alc1308.c
index f16d3a2..5449fe8 100644
--- a/src/drivers/soundwire/alc1308/alc1308.c
+++ b/src/drivers/soundwire/alc1308/alc1308.c
@@ -146,6 +146,6 @@
}
struct chip_operations drivers_soundwire_alc1308_ops = {
- CHIP_NAME("Realtek ALC1308 SoundWire Codec")
+ .name = "Realtek ALC1308 SoundWire Codec",
.enable_dev = soundwire_alc1308_enable
};
diff --git a/src/drivers/soundwire/alc5682/alc5682.c b/src/drivers/soundwire/alc5682/alc5682.c
index c1aaff6..0d8a3ab 100644
--- a/src/drivers/soundwire/alc5682/alc5682.c
+++ b/src/drivers/soundwire/alc5682/alc5682.c
@@ -174,6 +174,6 @@
}
struct chip_operations drivers_soundwire_alc5682_ops = {
- CHIP_NAME("Realtek ALC5682 SoundWire Codec")
+ .name = "Realtek ALC5682 SoundWire Codec",
.enable_dev = soundwire_alc5682_enable
};
diff --git a/src/drivers/soundwire/alc711/alc711.c b/src/drivers/soundwire/alc711/alc711.c
index 34d55c7..cfe28ad 100644
--- a/src/drivers/soundwire/alc711/alc711.c
+++ b/src/drivers/soundwire/alc711/alc711.c
@@ -151,6 +151,6 @@
}
struct chip_operations drivers_soundwire_alc711_ops = {
- CHIP_NAME("Realtek ALC711 SoundWire Codec")
+ .name = "Realtek ALC711 SoundWire Codec",
.enable_dev = soundwire_alc711_enable
};
diff --git a/src/drivers/soundwire/cs42l42/cs42l42.c b/src/drivers/soundwire/cs42l42/cs42l42.c
index 111844c..e7c14cc 100644
--- a/src/drivers/soundwire/cs42l42/cs42l42.c
+++ b/src/drivers/soundwire/cs42l42/cs42l42.c
@@ -226,6 +226,6 @@
}
struct chip_operations drivers_soundwire_cs42l42_ops = {
- CHIP_NAME("Cirrus Logic CS42L42 SoundWire Codec")
+ .name = "Cirrus Logic CS42L42 SoundWire Codec",
.enable_dev = soundwire_cs42l42_enable
};
diff --git a/src/drivers/soundwire/max98363/max98363.c b/src/drivers/soundwire/max98363/max98363.c
index 2963cda..7b90d78 100644
--- a/src/drivers/soundwire/max98363/max98363.c
+++ b/src/drivers/soundwire/max98363/max98363.c
@@ -136,6 +136,6 @@
}
struct chip_operations drivers_soundwire_max98363_ops = {
- CHIP_NAME("Maxim MAX98363 SoundWire Codec")
+ .name = "Maxim MAX98363 SoundWire Codec",
.enable_dev = soundwire_max98363_enable
};
diff --git a/src/drivers/soundwire/max98373/max98373.c b/src/drivers/soundwire/max98373/max98373.c
index fb202fe..e3107c4 100644
--- a/src/drivers/soundwire/max98373/max98373.c
+++ b/src/drivers/soundwire/max98373/max98373.c
@@ -160,6 +160,6 @@
}
struct chip_operations drivers_soundwire_max98373_ops = {
- CHIP_NAME("Maxim MAX98373 SoundWire Codec")
+ .name = "Maxim MAX98373 SoundWire Codec",
.enable_dev = soundwire_max98373_enable
};
diff --git a/src/drivers/spi/acpi/acpi.c b/src/drivers/spi/acpi/acpi.c
index 9b6fd80..b58bc2d 100644
--- a/src/drivers/spi/acpi/acpi.c
+++ b/src/drivers/spi/acpi/acpi.c
@@ -200,6 +200,6 @@
}
struct chip_operations drivers_spi_acpi_ops = {
- CHIP_NAME("SPI Device")
+ .name = "SPI Device",
.enable_dev = spi_acpi_enable
};
diff --git a/src/drivers/uart/acpi/acpi.c b/src/drivers/uart/acpi/acpi.c
index c43dc52..bcf896d 100644
--- a/src/drivers/uart/acpi/acpi.c
+++ b/src/drivers/uart/acpi/acpi.c
@@ -169,6 +169,6 @@
}
struct chip_operations drivers_uart_acpi_ops = {
- CHIP_NAME("ACPI UART Device")
+ .name = "ACPI UART Device",
.enable_dev = uart_acpi_enable
};
diff --git a/src/drivers/usb/acpi/usb_acpi.c b/src/drivers/usb/acpi/usb_acpi.c
index b95ebc9..b463b3b 100644
--- a/src/drivers/usb/acpi/usb_acpi.c
+++ b/src/drivers/usb/acpi/usb_acpi.c
@@ -127,7 +127,7 @@
}
struct chip_operations drivers_usb_acpi_ops = {
- CHIP_NAME("USB ACPI Device")
+ .name = "USB ACPI Device",
.enable_dev = usb_acpi_enable
};
diff --git a/src/drivers/usb/hub/acpi.c b/src/drivers/usb/hub/acpi.c
index 10e38fb6..e26d584 100644
--- a/src/drivers/usb/hub/acpi.c
+++ b/src/drivers/usb/hub/acpi.c
@@ -85,6 +85,6 @@
}
struct chip_operations drivers_usb_hub_ops = {
- CHIP_NAME("USB Hub")
+ .name = "USB Hub",
.enable_dev = usb_hub_acpi_enable
};
diff --git a/src/drivers/wifi/generic/generic.c b/src/drivers/wifi/generic/generic.c
index 19d281f..283b45a 100644
--- a/src/drivers/wifi/generic/generic.c
+++ b/src/drivers/wifi/generic/generic.c
@@ -67,7 +67,7 @@
}
struct chip_operations drivers_wifi_generic_ops = {
- CHIP_NAME("WIFI Device")
+ .name = "WIFI Device",
.enable_dev = wifi_generic_enable
};
diff --git a/src/drivers/wwan/fm/acpi_fm350gl.c b/src/drivers/wwan/fm/acpi_fm350gl.c
index 08f672f..77ff085 100644
--- a/src/drivers/wwan/fm/acpi_fm350gl.c
+++ b/src/drivers/wwan/fm/acpi_fm350gl.c
@@ -392,6 +392,6 @@
}
struct chip_operations drivers_wwan_fm_ops = {
- CHIP_NAME("Fibocom FM-350-GL")
+ .name = "Fibocom FM-350-GL",
.enable_dev = wwan_fm350gl_acpi_enable
};