mbox series

[0/3] hw/usb: Rename NB_PORTS -> UHCI_PORTS / EHCI_PORTS

Message ID 20240213043859.61019-1-philmd@linaro.org
Headers show
Series hw/usb: Rename NB_PORTS -> UHCI_PORTS / EHCI_PORTS | expand

Message

Philippe Mathieu-Daudé Feb. 13, 2024, 4:38 a.m. UTC
Rename variables to avoid clashing when including both
"hw/usb/hcd-ehci.h" and "hw/usb/hcd-uhci.h" in the same
file.

Philippe Mathieu-Daudé (3):
  hw/usb: Style cleanup
  hw/usb/uhci: Rename NB_PORTS -> UHCI_PORTS
  hw/usb/ehci: Rename NB_PORTS -> EHCI_PORTS

 hw/usb/hcd-ehci.h        |  8 ++++----
 hw/usb/hcd-uhci.h        |  4 ++--
 hw/usb/hcd-ehci-pci.c    |  2 +-
 hw/usb/hcd-ehci-sysbus.c |  2 +-
 hw/usb/hcd-ehci.c        | 21 +++++++++++----------
 hw/usb/hcd-uhci.c        | 24 +++++++++++++-----------
 6 files changed, 32 insertions(+), 29 deletions(-)

Comments

Richard Henderson Feb. 13, 2024, 6:35 a.m. UTC | #1
On 2/12/24 18:38, Philippe Mathieu-Daudé wrote:
> Philippe Mathieu-Daudé (3):
>    hw/usb: Style cleanup
>    hw/usb/uhci: Rename NB_PORTS -> UHCI_PORTS
>    hw/usb/ehci: Rename NB_PORTS -> EHCI_PORTS

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~
Michael Tokarev Feb. 13, 2024, 6:12 p.m. UTC | #2
13.02.2024 07:38, Philippe Mathieu-Daudé wrote:
> Rename variables to avoid clashing when including both
> "hw/usb/hcd-ehci.h" and "hw/usb/hcd-uhci.h" in the same
> file.
> 
> Philippe Mathieu-Daudé (3):
>    hw/usb: Style cleanup
>    hw/usb/uhci: Rename NB_PORTS -> UHCI_PORTS
>    hw/usb/ehci: Rename NB_PORTS -> EHCI_PORTS

Picked up the series for trivial-patches.

Thanks,

/mjt