hw/usb/ehci: Rename NB_PORTS -> EHCI_PORTS
commit1c83f366f909198a7bb50db2b40b3486ac977da2
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 13 Feb 2024 04:38:59 +0000 (13 05:38 +0100)
committerMichael Tokarev <mjt@tls.msk.ru>
Tue, 20 Feb 2024 17:34:21 +0000 (20 20:34 +0300)
tree5ca54f0ea40deea9922fde0a171e445bbcceadaf
parentfe693e32c8136bba792a355617d2b0f5d1914721
hw/usb/ehci: Rename NB_PORTS -> EHCI_PORTS

Rename NB_PORTS as EHCI_PORTS to avoid definition clash
with UHCI equivalent:

  hw/usb/hcd-ehci.h:40:9: error: 'NB_PORTS' macro redefined [-Werror,-Wmacro-redefined]
  #define NB_PORTS         6        /* Max. Number of downstream ports */
          ^
  hw/usb/hcd-uhci.h:38:9: note: previous definition is here
  #define NB_PORTS 2
          ^

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/usb/hcd-ehci-pci.c
hw/usb/hcd-ehci-sysbus.c
hw/usb/hcd-ehci.c
hw/usb/hcd-ehci.h