[PATCH 0/2] hw/core: Make qdev_pass_gpios/sysbus_pass_irq arguments self-describing

Philippe Mathieu-Daudé posted 2 patches 3 years, 9 months ago
Test docker-quick@centos7 passed
Test docker-mingw@fedora passed
Test checkpatch passed
Test FreeBSD passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20200818143825.691110-1-f4bug@amsat.org
include/hw/qdev-core.h | 10 +++++-----
include/hw/sysbus.h    |  7 ++++++-
hw/core/qdev.c         | 14 +++++++-------
hw/core/sysbus.c       |  5 ++---
4 files changed, 20 insertions(+), 16 deletions(-)
[PATCH 0/2] hw/core: Make qdev_pass_gpios/sysbus_pass_irq arguments self-describing
Posted by Philippe Mathieu-Daudé 3 years, 9 months ago
Simply rename qdev_pass_gpios() and sysbus_pass_irq() arguments using
self-describing names, to make the direction the GPIO/IRQ lines are
passed obvious.

Note, currently each function arguments are inverted :)

- qdev_pass_gpios: (from -> to)
- sysbus_pass_irq: (to -> from)

Philippe Mathieu-Daudé (2):
  hw/core/qdev: Make qdev_pass_gpios() arguments self-describing
  hw/core/sysbus: Make sysbus_pass_irq() arguments self-describing

 include/hw/qdev-core.h | 10 +++++-----
 include/hw/sysbus.h    |  7 ++++++-
 hw/core/qdev.c         | 14 +++++++-------
 hw/core/sysbus.c       |  5 ++---
 4 files changed, 20 insertions(+), 16 deletions(-)

-- 
2.26.2