summaryrefslogtreecommitdiff
path: root/sys/arch/loongson
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2013-10-20 20:07:32 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2013-10-20 20:07:32 +0000
commit18c58937b130d1a2db44d6c3d473a90949843503 (patch)
treef3060b2bced081991252774ec62653771951673e /sys/arch/loongson
parentef62fda8f2253b04886159b1e9107fe71b2627db (diff)
Use C99 named initializers for struct wsdisplay_accessops fields.
No functional change.
Diffstat (limited to 'sys/arch/loongson')
-rw-r--r--sys/arch/loongson/dev/sisfb.c16
-rw-r--r--sys/arch/loongson/dev/smfb.c17
2 files changed, 13 insertions, 20 deletions
diff --git a/sys/arch/loongson/dev/sisfb.c b/sys/arch/loongson/dev/sisfb.c
index d693c9f0937..8935efcf7c0 100644
--- a/sys/arch/loongson/dev/sisfb.c
+++ b/sys/arch/loongson/dev/sisfb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sisfb.c,v 1.2 2010/12/26 15:40:59 miod Exp $ */
+/* $OpenBSD: sisfb.c,v 1.3 2013/10/20 20:07:23 miod Exp $ */
/*
* Copyright (c) 2010 Miodrag Vallat.
@@ -92,15 +92,11 @@ int sisfb_show_screen(void *, void *, int, void (*)(void *, int, int),
paddr_t sisfb_mmap(void *, off_t, int);
struct wsdisplay_accessops sisfb_accessops = {
- sisfb_ioctl,
- sisfb_mmap,
- sisfb_alloc_screen,
- sisfb_free_screen,
- sisfb_show_screen,
- NULL, /* load_font */
- NULL, /* scrollback */
- NULL, /* getchar */
- NULL /* burner */
+ .ioctl = sisfb_ioctl,
+ .mmap = sisfb_mmap,
+ .alloc_screen = sisfb_alloc_screen,
+ .free_screen = sisfb_free_screen,
+ .show_screen = sisfb_show_screen
};
int sisfb_getcmap(uint8_t *, struct wsdisplay_cmap *);
diff --git a/sys/arch/loongson/dev/smfb.c b/sys/arch/loongson/dev/smfb.c
index 56494a038a7..a0c7f83e931 100644
--- a/sys/arch/loongson/dev/smfb.c
+++ b/sys/arch/loongson/dev/smfb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: smfb.c,v 1.14 2012/10/03 21:44:51 miod Exp $ */
+/* $OpenBSD: smfb.c,v 1.15 2013/10/20 20:07:24 miod Exp $ */
/*
* Copyright (c) 2009, 2010 Miodrag Vallat.
@@ -117,15 +117,12 @@ paddr_t smfb_mmap(void *, off_t, int);
void smfb_burner(void *, uint, uint);
struct wsdisplay_accessops smfb_accessops = {
- smfb_ioctl,
- smfb_mmap,
- smfb_alloc_screen,
- smfb_free_screen,
- smfb_show_screen,
- NULL, /* load_font */
- NULL, /* scrollback */
- NULL, /* getchar */
- smfb_burner
+ .ioctl = smfb_ioctl,
+ .mmap = smfb_mmap,
+ .alloc_screen = smfb_alloc_screen,
+ .free_screen = smfb_free_screen,
+ .show_screen = smfb_show_screen,
+ .burn_screen = smfb_burner
};
int smfb_setup(struct smfb *, bus_space_tag_t, bus_space_handle_t,