mbox series

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

Message ID 20200818143825.691110-1-f4bug@amsat.org
Headers show
Series hw/core: Make qdev_pass_gpios/sysbus_pass_irq arguments self-describing | expand

Message

Philippe Mathieu-Daudé Aug. 18, 2020, 2:38 p.m. UTC
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(-)