hw/usb/uhci: Rename NB_PORTS -> UHCI_PORTS
commitfe693e32c8136bba792a355617d2b0f5d1914721
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 13 Feb 2024 04:38:58 +0000 (13 05:38 +0100)
committerMichael Tokarev <mjt@tls.msk.ru>
Tue, 20 Feb 2024 17:34:21 +0000 (20 20:34 +0300)
tree15b124d0ac8ceffae69846cea3d1f85a0d55a250
parent455177ffc457098b0103d2a09cb7ba5e260dfcdd
hw/usb/uhci: Rename NB_PORTS -> UHCI_PORTS

Rename NB_PORTS as UHCI_PORTS to avoid definition clash
with EHCI equivalent:

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

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-uhci.c
hw/usb/hcd-uhci.h