diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2013-10-20 20:07:32 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2013-10-20 20:07:32 +0000 |
commit | 18c58937b130d1a2db44d6c3d473a90949843503 (patch) | |
tree | f3060b2bced081991252774ec62653771951673e /sys/dev/pci/drm | |
parent | ef62fda8f2253b04886159b1e9107fe71b2627db (diff) |
Use C99 named initializers for struct wsdisplay_accessops fields.
No functional change.
Diffstat (limited to 'sys/dev/pci/drm')
-rw-r--r-- | sys/dev/pci/drm/i915/i915_drv.c | 18 | ||||
-rw-r--r-- | sys/dev/pci/drm/radeon/radeon_kms.c | 18 |
2 files changed, 16 insertions, 20 deletions
diff --git a/sys/dev/pci/drm/i915/i915_drv.c b/sys/dev/pci/drm/i915/i915_drv.c index ad82c1a96bb..6e14a849aff 100644 --- a/sys/dev/pci/drm/i915/i915_drv.c +++ b/sys/dev/pci/drm/i915/i915_drv.c @@ -1,4 +1,4 @@ -/* $OpenBSD: i915_drv.c,v 1.40 2013/10/20 10:43:47 miod Exp $ */ +/* $OpenBSD: i915_drv.c,v 1.41 2013/10/20 20:07:29 miod Exp $ */ /* * Copyright (c) 2008-2009 Owain G. Ainsworth <oga@openbsd.org> * @@ -607,15 +607,13 @@ struct wsscreen_list inteldrm_screenlist = { }; struct wsdisplay_accessops inteldrm_accessops = { - inteldrm_wsioctl, - inteldrm_wsmmap, - inteldrm_alloc_screen, - inteldrm_free_screen, - inteldrm_show_screen, - NULL, - NULL, - inteldrm_getchar, - inteldrm_burner + .ioctl = inteldrm_wsioctl, + .mmap = inteldrm_wsmmap, + .alloc_screen = inteldrm_alloc_screen, + .free_screen = inteldrm_free_screen, + .show_screen = inteldrm_show_screen, + .getchar = inteldrm_getchar, + .burn_screen = inteldrm_burner }; extern int (*ws_get_param)(struct wsdisplay_param *); diff --git a/sys/dev/pci/drm/radeon/radeon_kms.c b/sys/dev/pci/drm/radeon/radeon_kms.c index 3e876a9645f..49793debd55 100644 --- a/sys/dev/pci/drm/radeon/radeon_kms.c +++ b/sys/dev/pci/drm/radeon/radeon_kms.c @@ -1,4 +1,4 @@ -/* $OpenBSD: radeon_kms.c,v 1.8 2013/10/20 10:43:48 miod Exp $ */ +/* $OpenBSD: radeon_kms.c,v 1.9 2013/10/20 20:07:29 miod Exp $ */ /* * Copyright 2008 Advanced Micro Devices, Inc. * Copyright 2008 Red Hat Inc. @@ -317,15 +317,13 @@ struct wsscreen_list radeondrm_screenlist = { }; struct wsdisplay_accessops radeondrm_accessops = { - radeondrm_wsioctl, - radeondrm_wsmmap, - radeondrm_alloc_screen, - radeondrm_free_screen, - radeondrm_show_screen, - NULL, - NULL, - radeondrm_getchar, - radeondrm_burner + .ioctl = radeondrm_wsioctl, + .mmap = radeondrm_wsmmap, + .alloc_screen = radeondrm_alloc_screen, + .free_screen = radeondrm_free_screen, + .show_screen = radeondrm_show_screen, + .getchar = radeondrm_getchar, + .burn_screen = radeondrm_burner }; int |