qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] hw: Replace some magic by definitions
@ 2020-10-11 19:49 Philippe Mathieu-Daudé
  2020-10-11 19:49 ` [PATCH 1/4] hw: Replace magic value by PCI_NUM_PINS definition Philippe Mathieu-Daudé
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-10-11 19:49 UTC (permalink / raw)
  To: qemu-devel
  Cc: Laurent Vivier, Peter Maydell, Aleksandar Rikalo,
	Michael S. Tsirkin, qemu-trivial, Thomas Huth,
	Philippe Mathieu-Daudé, Aleksandar Markovic, qemu-arm,
	Paolo Bonzini, Aurelien Jarno

A bunch of trivial cleanups, replacing magic
values by definitions to make the code easier
to review.

Expected to be merged via qemu-trivial@.

Regards,

Phil.

Philippe Mathieu-Daudé (4):
  hw: Replace magic value by PCI_NUM_PINS definition
  hw/pci-host/pam: Use ARRAY_SIZE() instead of magic value
  hw/pci-host/versatile: Add WINDOW_COUNT definition to replace magic
    '3'
  tests/qtest: Replace magic value by NANOSECONDS_PER_SECOND definition

 hw/arm/virt.c           |  4 ++--
 hw/mips/gt64xxx_pci.c   |  2 +-
 hw/pci-host/pam.c       |  2 +-
 hw/pci-host/versatile.c | 34 +++++++++++++++++-----------------
 tests/qtest/rtc-test.c  |  2 +-
 5 files changed, 22 insertions(+), 22 deletions(-)

-- 
2.26.2



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

end of thread, other threads:[~2020-10-12 13:03 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-11 19:49 [PATCH 0/4] hw: Replace some magic by definitions Philippe Mathieu-Daudé
2020-10-11 19:49 ` [PATCH 1/4] hw: Replace magic value by PCI_NUM_PINS definition Philippe Mathieu-Daudé
2020-10-11 19:49 ` [PATCH 2/4] hw/pci-host/pam: Use ARRAY_SIZE() instead of magic value Philippe Mathieu-Daudé
2020-10-11 19:49 ` [PATCH 3/4] hw/pci-host/versatile: Add WINDOW_COUNT definition to replace magic '3' Philippe Mathieu-Daudé
2020-10-11 20:46   ` Peter Maydell
2020-10-12 13:01     ` Philippe Mathieu-Daudé
2020-10-11 19:49 ` [PATCH 4/4] tests/qtest: Replace magic value by NANOSECONDS_PER_SECOND definition Philippe Mathieu-Daudé
2020-10-12  6:58   ` Thomas Huth

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).