]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/gpio/pl061: Declare pullups/pulldowns as 8-bit types
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 21 Oct 2025 14:53:13 +0000 (16:53 +0200)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 31 Oct 2025 16:26:44 +0000 (16:26 +0000)
commit92122685e5ed95c143fdfa223c170f11867db7bd
tree083455b8d0a8442847cf004abf0531e7fcbbaa75
parent3728de31925ae9658e2ce3d1ff9b63c83609f310
hw/gpio/pl061: Declare pullups/pulldowns as 8-bit types

uint8_t is good enough to hold a property "between 0 and 0xff".

Define pullups/pulldowns properties using DEFINE_PROP_UINT8()
macro, remove unnecessary range checks in pl061_realize().
Update the two caller sites.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/virt.c
hw/gpio/pl061.c
hw/vmapple/vmapple.c