qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/8] qom: Rename macros for consistency (pass 2)
@ 2020-09-03 18:01 Eduardo Habkost
  2020-09-03 18:01 ` [PATCH 1/8] i8254: Rename TYPE_I8254 to TYPE_ISA_PIT Eduardo Habkost
                   ` (7 more replies)
  0 siblings, 8 replies; 18+ messages in thread
From: Eduardo Habkost @ 2020-09-03 18:01 UTC (permalink / raw)
  To: qemu-devel, Daniel P. Berrange
  Cc: Fam Zheng, Eduardo Habkost, Michael S. Tsirkin, Gerd Hoffmann,
	Paolo Bonzini, Philippe Mathieu-Daudé, Richard Henderson

Reducing boilerplate QOM code using the new OBJECT_DEFINE_* and
OBJECT_DECLARE_* macros is quite difficult when there are
multiple ways a TYPE_* constant name is written.

This series renames many type checking macros and/or TYPE_*
constants to make sure they are consistent.

This is a second pass of cleanups, incorporating suggestions
Philippe and Daniel sent when reviewing the previous series[1].

This series is based on machine-next and can be fetched from:

  https://github.com/ehabkost/qemu-hacks work/qom-rename-macros-pass2

[1] https://lore.kernel.org/qemu-devel/20200902224311.1321159-1-ehabkost@redhat.com/

Eduardo Habkost (8):
  i8254: Rename TYPE_I8254 to TYPE_ISA_PIT
  i8254: Rename PIT to ISA_PIT
  i8259: Rename TYPE_I8259 to TYPE_ISA_I8259
  i8259: Rename PIC to ISA_I8259
  i8259: Rename KVM_PIC to KVM_I8259
  esp-pci: Rename TYPE_AM53C974_DEVICE to TYPE_AM53C974
  esp-pci: Rename PCI_ESP to AM53C974
  tusb6010: Rename TUSB to TUSB6010

 include/hw/timer/i8254.h |  4 ++--
 hw/i386/kvm/i8259.c      |  6 +++---
 hw/intc/i8259.c          | 16 ++++++++--------
 hw/scsi/esp-pci.c        | 16 ++++++++--------
 hw/timer/i8254.c         | 10 +++++-----
 hw/usb/tusb6010.c        |  6 +++---
 6 files changed, 29 insertions(+), 29 deletions(-)

-- 
2.26.2




^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2020-09-04  8:51 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-03 18:01 [PATCH 0/8] qom: Rename macros for consistency (pass 2) Eduardo Habkost
2020-09-03 18:01 ` [PATCH 1/8] i8254: Rename TYPE_I8254 to TYPE_ISA_PIT Eduardo Habkost
2020-09-04  8:44   ` Daniel P. Berrangé
2020-09-03 18:01 ` [PATCH 2/8] i8254: Rename PIT to ISA_PIT Eduardo Habkost
2020-09-04  8:44   ` Daniel P. Berrangé
2020-09-03 18:01 ` [PATCH 3/8] i8259: Rename TYPE_I8259 to TYPE_ISA_I8259 Eduardo Habkost
2020-09-04  8:46   ` Daniel P. Berrangé
2020-09-03 18:01 ` [PATCH 4/8] i8259: Rename PIC to ISA_I8259 Eduardo Habkost
2020-09-04  8:48   ` Daniel P. Berrangé
2020-09-03 18:01 ` [PATCH 5/8] i8259: Rename KVM_PIC to KVM_I8259 Eduardo Habkost
2020-09-04  8:48   ` Daniel P. Berrangé
2020-09-03 18:01 ` [PATCH 6/8] esp-pci: Rename TYPE_AM53C974_DEVICE to TYPE_AM53C974 Eduardo Habkost
2020-09-04  8:48   ` Daniel P. Berrangé
2020-09-03 18:01 ` [PATCH 7/8] esp-pci: Rename PCI_ESP to AM53C974 Eduardo Habkost
2020-09-04  8:49   ` Daniel P. Berrangé
2020-09-03 18:01 ` [PATCH 8/8] tusb6010: Rename TUSB to TUSB6010 Eduardo Habkost
2020-09-03 19:17   ` Philippe Mathieu-Daudé
2020-09-04  8:50   ` Daniel P. Berrangé

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).