ppc440: Add a macro to shorten PCIe controller DCR registration
commitca1ae3432f22c33401a0c8cbf4f7cd4cf13e8e6f
authorBALATON Zoltan <balaton@eik.bme.hu>
Wed, 5 Jul 2023 20:12:47 +0000 (5 22:12 +0200)
committerDaniel Henrique Barboza <danielhb413@gmail.com>
Fri, 7 Jul 2023 07:47:49 +0000 (7 04:47 -0300)
tree46e17882395cb6fa971d809263b0871b6e51f4c1
parent256f06668a7764a3bab581cd3b548964e3861189
ppc440: Add a macro to shorten PCIe controller DCR registration

It is shorter and more readable to wrap the complex call to
ppc_dcr_register() in a macro than to repeat it several times.

Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <4dec5ef8115791dc67253afdff9a703eb816a2a8.1688586835.git.balaton@eik.bme.hu>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
hw/ppc/ppc440_uc.c