OSDN Git Service

hw/usb/uhci: Replace container_of() by UHCI_GET_CLASS() QOM macro
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 20 Feb 2023 10:42:46 +0000 (11:42 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 27 Feb 2023 21:29:02 +0000 (22:29 +0100)
commitce6ffeaed0872fb7a5e0f0ce164f5493956fb0f3
treeb434bdec9ff806214d6adf83c4322fce43a38380
parentef177ee12281b4bdfc5950bbaa8b3a6ff71331cc
hw/usb/uhci: Replace container_of() by UHCI_GET_CLASS() QOM macro

By using the QOM UHCI_GET_CLASS() cast macro we don't to
use the intermediate PCIDeviceClass variable.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230220150515.32549-6-philmd@linaro.org>
hw/usb/hcd-uhci.c