summaryrefslogtreecommitdiffstats
path: root/src/superio/smsc
diff options
context:
space:
mode:
authorNicholas Sudsgaard <devel+coreboot@nsudsgaard.com>2024-01-30 09:53:46 +0900
committerFelix Singer <service+coreboot-gerrit@felixsinger.de>2024-01-31 09:51:58 +0000
commitbfb11bec3b3fec638adf864a9b9b2cff6671fed8 (patch)
tree0247c385cfbd79aa8496b1ddc3c3afcce1465616 /src/superio/smsc
parentf4c496d3e3e779b3d870d13e1e359a3b5f7087cb (diff)
downloadcoreboot-bfb11bec3b3fec638adf864a9b9b2cff6671fed8.tar.gz
coreboot-bfb11bec3b3fec638adf864a9b9b2cff6671fed8.tar.bz2
coreboot-bfb11bec3b3fec638adf864a9b9b2cff6671fed8.zip
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>
Diffstat (limited to 'src/superio/smsc')
-rw-r--r--src/superio/smsc/fdc37n972/superio.c2
-rw-r--r--src/superio/smsc/kbc1100/superio.c2
-rw-r--r--src/superio/smsc/lpc47m10x/superio.c2
-rw-r--r--src/superio/smsc/lpc47m15x/superio.c2
-rw-r--r--src/superio/smsc/lpc47n217/superio.c2
-rw-r--r--src/superio/smsc/lpc47n227/superio.c2
-rw-r--r--src/superio/smsc/mec1308/superio.c2
-rw-r--r--src/superio/smsc/sch5545/superio.c2
-rw-r--r--src/superio/smsc/sch555x/ramstage.c2
-rw-r--r--src/superio/smsc/sio1036/superio.c2
-rw-r--r--src/superio/smsc/sio10n268/superio.c2
-rw-r--r--src/superio/smsc/smscsuperio/superio.c2
12 files changed, 12 insertions, 12 deletions
diff --git a/src/superio/smsc/fdc37n972/superio.c b/src/superio/smsc/fdc37n972/superio.c
index a62bba86234b..ba197d8422da 100644
--- a/src/superio/smsc/fdc37n972/superio.c
+++ b/src/superio/smsc/fdc37n972/superio.c
@@ -46,6 +46,6 @@ static void enable_dev(struct device *dev)
}
struct chip_operations superio_smsc_fdc37n972_ops = {
- CHIP_NAME("SMSC FDC37N972 Super I/O")
+ .name = "SMSC FDC37N972 Super I/O",
.enable_dev = enable_dev,
};
diff --git a/src/superio/smsc/kbc1100/superio.c b/src/superio/smsc/kbc1100/superio.c
index 862a77bd1361..74f2326bd305 100644
--- a/src/superio/smsc/kbc1100/superio.c
+++ b/src/superio/smsc/kbc1100/superio.c
@@ -14,7 +14,7 @@ static void enable_dev(struct device *dev);
static void kbc1100_init(struct device *dev);
struct chip_operations superio_smsc_kbc1100_ops = {
- CHIP_NAME("SMSC KBC1100 Super I/O")
+ .name = "SMSC KBC1100 Super I/O",
.enable_dev = enable_dev
};
diff --git a/src/superio/smsc/lpc47m10x/superio.c b/src/superio/smsc/lpc47m10x/superio.c
index cb297a5b14cd..157275ea7e13 100644
--- a/src/superio/smsc/lpc47m10x/superio.c
+++ b/src/superio/smsc/lpc47m10x/superio.c
@@ -58,6 +58,6 @@ static void enable_dev(struct device *dev)
}
struct chip_operations superio_smsc_lpc47m10x_ops = {
- CHIP_NAME("SMSC LPC47M10x Super I/O")
+ .name = "SMSC LPC47M10x Super I/O",
.enable_dev = enable_dev
};
diff --git a/src/superio/smsc/lpc47m15x/superio.c b/src/superio/smsc/lpc47m15x/superio.c
index e1e4883ba67a..6f57133c82d4 100644
--- a/src/superio/smsc/lpc47m15x/superio.c
+++ b/src/superio/smsc/lpc47m15x/superio.c
@@ -14,7 +14,7 @@ static void enable_dev(struct device *dev);
static void lpc47m15x_init(struct device *dev);
struct chip_operations superio_smsc_lpc47m15x_ops = {
- CHIP_NAME("SMSC LPC47M15x/192/997 Super I/O")
+ .name = "SMSC LPC47M15x/192/997 Super I/O",
.enable_dev = enable_dev
};
diff --git a/src/superio/smsc/lpc47n217/superio.c b/src/superio/smsc/lpc47n217/superio.c
index dcaf6e760b71..c59ce2d7ca78 100644
--- a/src/superio/smsc/lpc47n217/superio.c
+++ b/src/superio/smsc/lpc47n217/superio.c
@@ -25,7 +25,7 @@ static void pnp_enter_conf_state(struct device *dev);
static void pnp_exit_conf_state(struct device *dev);
struct chip_operations superio_smsc_lpc47n217_ops = {
- CHIP_NAME("SMSC LPC47N217 Super I/O")
+ .name = "SMSC LPC47N217 Super I/O",
.enable_dev = enable_dev,
};
diff --git a/src/superio/smsc/lpc47n227/superio.c b/src/superio/smsc/lpc47n227/superio.c
index 37123509a955..edcc2717c9d1 100644
--- a/src/superio/smsc/lpc47n227/superio.c
+++ b/src/superio/smsc/lpc47n227/superio.c
@@ -24,7 +24,7 @@ void lpc47n227_pnp_set_irq(struct device *dev, u8 irq);
void lpc47n227_pnp_set_enable(struct device *dev, int enable);
struct chip_operations superio_smsc_lpc47n227_ops = {
- CHIP_NAME("SMSC LPC47N227 Super I/O")
+ .name = "SMSC LPC47N227 Super I/O",
.enable_dev = enable_dev,
};
diff --git a/src/superio/smsc/mec1308/superio.c b/src/superio/smsc/mec1308/superio.c
index 6c8597c0a80b..39e100ece9e7 100644
--- a/src/superio/smsc/mec1308/superio.c
+++ b/src/superio/smsc/mec1308/superio.c
@@ -47,6 +47,6 @@ static void enable_dev(struct device *dev)
}
struct chip_operations superio_smsc_mec1308_ops = {
- CHIP_NAME("SMSC MEC1308 EC SuperIO Interface")
+ .name = "SMSC MEC1308 EC SuperIO Interface",
.enable_dev = enable_dev
};
diff --git a/src/superio/smsc/sch5545/superio.c b/src/superio/smsc/sch5545/superio.c
index 1ce1fd61aab1..7b8e5a063e42 100644
--- a/src/superio/smsc/sch5545/superio.c
+++ b/src/superio/smsc/sch5545/superio.c
@@ -303,6 +303,6 @@ static void enable_dev(struct device *dev)
}
struct chip_operations superio_smsc_sch5545_ops = {
- CHIP_NAME("SMSC SCH5545 Super I/O")
+ .name = "SMSC SCH5545 Super I/O",
.enable_dev = enable_dev,
};
diff --git a/src/superio/smsc/sch555x/ramstage.c b/src/superio/smsc/sch555x/ramstage.c
index 2245001af22c..1cdd8697ceeb 100644
--- a/src/superio/smsc/sch555x/ramstage.c
+++ b/src/superio/smsc/sch555x/ramstage.c
@@ -136,6 +136,6 @@ static void sch555x_enable_dev(struct device *dev)
}
struct chip_operations superio_smsc_sch555x_ops = {
- CHIP_NAME("SMSC SCH555x Super I/O")
+ .name = "SMSC SCH555x Super I/O",
.enable_dev = sch555x_enable_dev,
};
diff --git a/src/superio/smsc/sio1036/superio.c b/src/superio/smsc/sio1036/superio.c
index 3dcaae8ddef3..8b1704f83ca4 100644
--- a/src/superio/smsc/sio1036/superio.c
+++ b/src/superio/smsc/sio1036/superio.c
@@ -33,6 +33,6 @@ static void enable_dev(struct device *dev)
}
struct chip_operations superio_smsc_sio1036_ops = {
- CHIP_NAME("SMSC SIO1036 Super I/O")
+ .name = "SMSC SIO1036 Super I/O",
.enable_dev = enable_dev
};
diff --git a/src/superio/smsc/sio10n268/superio.c b/src/superio/smsc/sio10n268/superio.c
index ca5a0c69f1ba..fa79a57a9b4c 100644
--- a/src/superio/smsc/sio10n268/superio.c
+++ b/src/superio/smsc/sio10n268/superio.c
@@ -43,6 +43,6 @@ static void enable_dev(struct device *dev)
}
struct chip_operations superio_smsc_sio10n268_ops = {
- CHIP_NAME("SMSC SIO10N268 Super I/O")
+ .name = "SMSC SIO10N268 Super I/O",
.enable_dev = enable_dev,
};
diff --git a/src/superio/smsc/smscsuperio/superio.c b/src/superio/smsc/smscsuperio/superio.c
index a182d90d30c4..3ba82169617b 100644
--- a/src/superio/smsc/smscsuperio/superio.c
+++ b/src/superio/smsc/smscsuperio/superio.c
@@ -281,6 +281,6 @@ static void enable_dev(struct device *dev)
}
struct chip_operations superio_smsc_smscsuperio_ops = {
- CHIP_NAME("Various SMSC Super I/Os")
+ .name = "Various SMSC Super I/Os",
.enable_dev = enable_dev
};