summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorKlemens Nanni <kn@cvs.openbsd.org>2022-11-09 22:12:41 +0000
committerKlemens Nanni <kn@cvs.openbsd.org>2022-11-09 22:12:41 +0000
commit758bf33dbc2f1971c844069ed3b55f61d6622ec3 (patch)
tree4219ff30d87995fed607e848786dea1913db3267 /sys/dev
parent5465cf8e826449fdab0fa4df75782e9da2bed72f (diff)
Constify simplefb_formats[]; OK patrick
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/fdt/simplefb.c6
1 files 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;