summary refs log tree commit diff stats
path: root/hw/misc/led.c
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2024-12-13 16:15:59 +0000
committerRichard Henderson <richard.henderson@linaro.org>2024-12-15 12:55:39 -0600
commit30029973103ac7f7ffb7bce0f088b773ad9f5dae (patch)
tree924ee7b9dec346b9a2e51482ceac64f61f378b13 /hw/misc/led.c
parent56d8d2b34288c3ea6b62d9e0069cc927d542ea93 (diff)
downloadfocaccia-qemu-30029973103ac7f7ffb7bce0f088b773ad9f5dae.tar.gz
focaccia-qemu-30029973103ac7f7ffb7bce0f088b773ad9f5dae.zip
hw/misc: Constify all Property
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'hw/misc/led.c')
-rw-r--r--hw/misc/led.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/misc/led.c b/hw/misc/led.c
index 4bb6ce8d29..76efdbc3f1 100644
--- a/hw/misc/led.c
+++ b/hw/misc/led.c
@@ -101,7 +101,7 @@ static void led_realize(DeviceState *dev, Error **errp)
     qdev_init_gpio_in(DEVICE(s), led_set_state_gpio_handler, 1);
 }
 
-static Property led_properties[] = {
+static const Property led_properties[] = {
     DEFINE_PROP_STRING("color", LEDState, color),
     DEFINE_PROP_STRING("description", LEDState, description),
     DEFINE_PROP_BOOL("gpio-active-high", LEDState, gpio_active_high, true),