ich: get rid of spaces in type name
PATCH 1/1 ich: get rid of spaces in type name
Names with spaces in them are nasty, let's not go there.
---
Already in my tree, let me know if you see issues.
include/hw/i386/ich9.h | 2 +- include/hw/i386/pc.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
include/hw/i386/ich9.h +1 -1
@@ -24,7 +24,7 @@ I2CBus *ich9_smb_init(PCIBus *bus, int devfn, uint32_t smb_io_base);#define ICH9_CC_SIZE (16 * 1024)/* 16KB */ -#define TYPE_ICH9_LPC_DEVICE "ICH9 LPC" +#define TYPE_ICH9_LPC_DEVICE "ICH9_LPC"#define ICH9_LPC_DEVICE (obj) \ OBJECT_CHECK(ICH9LPCState, (obj), TYPE_ICH9_LPC_DEVICE)
include/hw/i386/pc.h +1 -1
@@ -295,7 +295,7 @@ bool e820_get_entry(int, uint32_t, uint64_t *, uint64_t *);#define PC_Q35_COMPAT_2_0 \ PC_COMPAT_2_0, \ {\ - .driver = "ICH9 LPC",\ + .driver = "ICH9_LPC",\ .property = "memory-hotplug-support",\ .value = "off",\ }
Signature · 1 line
MST
Quoted 1 line · Michael S. Tsirkin
Names with spaces in them are nasty, let's not go there.
Yes, they are, but please use '-' instead of '_'. I can see just a few devices with '_' in their name, but more than a hundred with '-'.
Quoted 6 lines · Markus Armbruster
Quoted 1 line · Michael S. Tsirkin
Names with spaces in them are nasty, let's not go there.
Yes, they are, but please use '-' instead of '_'. I can see just a few devices with '_' in their name, but more than a hundred with '-'.
No problem, I made this change.
Result pushed to the pci branch, pls take a look there.
Thanks!
Signature · 1 line
MST
Quoted 5 lines · Michael S. Tsirkin
Quoted 4 lines · Markus Armbruster
Quoted 1 line · Michael S. Tsirkin
Names with spaces in them are nasty, let's not go there.
Quoted 7 lines
Quoted 2 lines
Yes, they are, but please use '-' instead of '_'. I can see just a few devices with '_' in their name, but more than a hundred with '-'.
No problem, I made this change.
Result pushed to the pci branch, pls take a look there.Thanks!
The change is good, but I have more questions now.
What about "ICH9 SMB" in hw/i2c/smbus_ich9.c?
Technically, device names are ABI. These two are onboard devices, so changing their names can't break -device / device_add use. It still could break -global use. Do we care?
If yes, the obvious fix is to keep the old name as alias.
Quoted 10 lines · Markus Armbruster
Quoted 8 lines · Michael S. Tsirkin
Quoted 6 lines · Markus Armbruster
Quoted 1 line · Michael S. Tsirkin
Names with spaces in them are nasty, let's not go there.
Yes, they are, but please use '-' instead of '_'. I can see just a few devices with '_' in their name, but more than a hundred with '-'.
Quoted 8 lines
Quoted 4 lines
No problem, I made this change.
Result pushed to the pci branch, pls take a look there.Thanks!
The change is good, but I have more questions now.
What about "ICH9 SMB" in
hw/i2c/smbus_ich9.c?
Same thing I guess. I noticed the other one because Igor touched it in his patch.
Pls go ahead and submit a patch.
Quoted 5 lines
Technically, device names are ABI. These two are onboard devices, so changing their names can't break -device /
device_adduse. It still could break -global use. Do we care?If yes, the obvious fix is to keep the old name as alias.
I don't think we care practically, but sure, go ahead and submit the patch if you feel like it.
Signature · 1 line
MST