OSDN Git Service

hw/timer/xilinx_timer: Use XpsTimerState instead of 'struct timerblock'
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 9 Jan 2023 14:03:06 +0000 (15:03 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 12 Jan 2023 17:15:09 +0000 (17:15 +0000)
commit543d02267150aef71763fb2baaccef8eb9e5042a
tree1e25bc559d1c71776d2c61e31ae63d06e1f50578
parentd2960be0c3dafc43a3160b275ea8760bb308a909
hw/timer/xilinx_timer: Use XpsTimerState instead of 'struct timerblock'

This remove a use of 'struct' in the DECLARE_INSTANCE_CHECKER()
macro call, to avoid after a QOM refactor:

  hw/timer/xilinx_timer.c:65:1: error: declaration of anonymous struct must be a definition
  DECLARE_INSTANCE_CHECKER(struct timerblock, XILINX_TIMER,
                           ^

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Edgar E. Iglesias <edgar@zeroasic.com>
Message-id: 20230109140306.23161-15-philmd@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/timer/xilinx_timer.c