Commit 10b63551b6 for qemu.org

commit 10b63551b623ba9c22f6796aea4f6837fb579d76
Author: Philippe Mathieu-Daudé <philmd@linaro.org>
Date:   Wed Feb 11 14:45:16 2026 +0100

    hw/display/macfb: Constify macfb_sense_table[] array

    macfb_sense_table[] is only read, never updated, so can be const.

    Update the single call site, macfb_sense_read().

    Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
    Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
    Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
    Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
    Message-Id: <20260216213121.47122-2-philmd@linaro.org>

diff --git a/hw/display/macfb.c b/hw/display/macfb.c
index 388f8de507..57ad8ad558 100644
--- a/hw/display/macfb.c
+++ b/hw/display/macfb.c
@@ -82,7 +82,7 @@ typedef struct MacFbSense {
     uint8_t ext_sense;
 } MacFbSense;

-static MacFbSense macfb_sense_table[] = {
+static const MacFbSense macfb_sense_table[] = {
     { MACFB_DISPLAY_APPLE_21_COLOR, 0x0, 0 },
     { MACFB_DISPLAY_APPLE_PORTRAIT, 0x1, 0 },
     { MACFB_DISPLAY_APPLE_12_RGB, 0x2, 0 },
@@ -342,7 +342,7 @@ static void macfb_invalidate_display(void *opaque)

 static uint32_t macfb_sense_read(MacfbState *s)
 {
-    MacFbSense *macfb_sense;
+    const MacFbSense *macfb_sense;
     uint8_t sense;

     assert(s->type < ARRAY_SIZE(macfb_sense_table));