diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2020-05-25 09:55:50 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2020-05-25 09:55:50 +0000 |
commit | 9e5735df00975584d6cf6bc08dbd76eabfee6fac (patch) | |
tree | b53b6f9533ffd09189205a870c4acea54dbed001 /sys/dev/pci/drm/i915 | |
parent | 2c743ea363c5f913f013bb5b9402bcbea962c0a3 (diff) |
change wsdisplay attribute type from long to uint32_t
miod explained it was initially a long as it was thought drivers may
need to allocate storage but in practice they don't need more than
32 bits for an attribute.
suggested and reviewed by miod@
Diffstat (limited to 'sys/dev/pci/drm/i915')
-rw-r--r-- | sys/dev/pci/drm/i915/i915_drv.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/drm/i915/i915_drv.c b/sys/dev/pci/drm/i915/i915_drv.c index c245e7e058c..c01597699f8 100644 --- a/sys/dev/pci/drm/i915/i915_drv.c +++ b/sys/dev/pci/drm/i915/i915_drv.c @@ -3160,7 +3160,7 @@ intagp_print(void *vaa, const char *pnp) int inteldrm_wsioctl(void *, u_long, caddr_t, int, struct proc *); paddr_t inteldrm_wsmmap(void *, off_t, int); int inteldrm_alloc_screen(void *, const struct wsscreen_descr *, - void **, int *, int *, long *); + void **, int *, int *, uint32_t *); void inteldrm_free_screen(void *, void *); int inteldrm_show_screen(void *, void *, int, void (*)(void *, int, int), void *); @@ -3267,7 +3267,7 @@ inteldrm_wsmmap(void *v, off_t off, int prot) int inteldrm_alloc_screen(void *v, const struct wsscreen_descr *type, - void **cookiep, int *curxp, int *curyp, long *attrp) + void **cookiep, int *curxp, int *curyp, uint32_t *attrp) { struct inteldrm_softc *dev_priv = v; struct rasops_info *ri = &dev_priv->ro; @@ -3658,7 +3658,7 @@ inteldrm_attachhook(struct device *self) aa.defaultscreens = 0; if (dev_priv->console) { - long defattr; + uint32_t defattr; /* * Clear the entire screen if we're doing rotation to |