OSDN Git Service

hw/char/mcf_uart: Have mcf_uart_create() return DeviceState
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 19 Oct 2023 10:49:29 +0000 (12:49 +0200)
committerThomas Huth <huth@tuxfamily.org>
Wed, 1 Nov 2023 06:31:05 +0000 (07:31 +0100)
commitf213ccc96831191ac492bd36b9935effa01f95fd
tree7740c4bd7801e970de5c546b5a2f153fe485e787
parent7f090ed7103df119fa33651ae15958ddb5863f56
hw/char/mcf_uart: Have mcf_uart_create() return DeviceState

There is no point in having mcf_uart_init() demote the DeviceState
pointer and return a void one. Directly return the real typedef.

mcf_uart_init() do both init + realize: rename as mcf_uart_create().

Similarly, mcf_uart_mm_init() do init / realize / mmap: rename as
mcf_uart_create_mmap().

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20231019104929.16517-1-philmd@linaro.org>
Signed-off-by: Thomas Huth <huth@tuxfamily.org>
hw/char/mcf_uart.c
hw/m68k/mcf5206.c
hw/m68k/mcf5208.c
include/hw/m68k/mcf.h