From c39c0495bee28a36031d12a0b2887f99884e9d2f Mon Sep 17 00:00:00 2001 From: kn Date: Wed, 9 Nov 2022 22:12:40 +0000 Subject: [PATCH] Constify simplefb_formats[]; OK patrick --- sys/dev/fdt/simplefb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/fdt/simplefb.c b/sys/dev/fdt/simplefb.c index e8f745f0b69..f9f3e1ef4fc 100644 --- a/sys/dev/fdt/simplefb.c +++ b/sys/dev/fdt/simplefb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: simplefb.c,v 1.17 2022/09/26 15:49:59 kettenis Exp $ */ +/* $OpenBSD: simplefb.c,v 1.18 2022/11/09 22:12:40 kn Exp $ */ /* * Copyright (c) 2016 Mark Kettenis * @@ -46,7 +46,7 @@ struct simplefb_format { * Supported pixel formats. Layout omitted when it matches the * rasops defaults. */ -struct simplefb_format simplefb_formats[] = { +const struct simplefb_format simplefb_formats[] = { { "r5g6b5", 16 }, { "x1r5g5b5", 15 }, { "a1r5g5b5", 15 }, @@ -198,7 +198,7 @@ simplefb_attach(struct device *parent, struct device *self, void *aux) const char * simplefb_init(int node, struct rasops_info *ri) { - struct simplefb_format *fmt = NULL; + const struct simplefb_format *fmt = NULL; static char format[16]; int i; -- 2.20.1