summaryrefslogtreecommitdiffstats
path: root/sys/arch/sgi/dev/impact.c
diff options
context:
space:
mode:
authorjsg <jsg@openbsd.org>2020-05-25 06:45:25 +0000
committerjsg <jsg@openbsd.org>2020-05-25 06:45:25 +0000
commitfc223b232cff7e51a9474209d53006b4ae5898e7 (patch)
treed686bcf653c8636db97661bfec3b878368cb166d /sys/arch/sgi/dev/impact.c
parentKill unused cdev_pc_init(). (diff)
downloadwireguard-openbsd-fc223b232cff7e51a9474209d53006b4ae5898e7.tar.xz
wireguard-openbsd-fc223b232cff7e51a9474209d53006b4ae5898e7.zip
rename wsdisplay alloc_attr() to pack_attr()
Suggested by John Carmack. miod agrees a rename would make sense and explained it was initially thought drivers may need to allocate storage but in practice they don't need more than 32 bits for an attribute. ok mpi@
Diffstat (limited to 'sys/arch/sgi/dev/impact.c')
-rw-r--r--sys/arch/sgi/dev/impact.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/sgi/dev/impact.c b/sys/arch/sgi/dev/impact.c
index 7c181e267e6..0d79d017ca7 100644
--- a/sys/arch/sgi/dev/impact.c
+++ b/sys/arch/sgi/dev/impact.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: impact.c,v 1.9 2017/09/08 05:36:52 deraadt Exp $ */
+/* $OpenBSD: impact.c,v 1.10 2020/05/25 06:45:25 jsg Exp $ */
/*
* Copyright (c) 2010, 2012 Miodrag Vallat.
@@ -448,7 +448,7 @@ impact_alloc_screen(void *v, const struct wsscreen_descr *type,
*cookiep = ri;
*curxp = 0;
*curyp = 0;
- ri->ri_ops.alloc_attr(ri, 0, 0, 0, &scr->defattr);
+ ri->ri_ops.pack_attr(ri, 0, 0, 0, &scr->defattr);
*attrp = scr->defattr;
return 0;
@@ -769,7 +769,7 @@ impact_cnattach_common(bus_space_tag_t iot, bus_space_handle_t ioh, int has_hq4)
if (rc != 0)
return rc;
- ri->ri_ops.alloc_attr(ri, 0, 0, 0, &scr->defattr);
+ ri->ri_ops.pack_attr(ri, 0, 0, 0, &scr->defattr);
wsdisplay_cnattach(&scr->wsd, ri, 0, 0, scr->defattr);
return 0;