Fit in 80 columns. NFC.

This commit is contained in:
jmcneill 2021-01-17 19:51:43 +00:00
parent a5778d2e53
commit 7472dc0d7c
1 changed files with 11 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: arm_simplefb.c,v 1.6 2021/01/17 19:03:49 jmcneill Exp $ */
/* $NetBSD: arm_simplefb.c,v 1.7 2021/01/17 19:51:43 jmcneill Exp $ */
/*-
* Copyright (c) 2019 The NetBSD Foundation, Inc.
@ -34,7 +34,7 @@
#include "opt_vcons.h"
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: arm_simplefb.c,v 1.6 2021/01/17 19:03:49 jmcneill Exp $");
__KERNEL_RCSID(0, "$NetBSD: arm_simplefb.c,v 1.7 2021/01/17 19:51:43 jmcneill Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@ -93,7 +93,9 @@ static bus_space_handle_t arm_simplefb_bsh;
static int
arm_simplefb_find_node(void)
{
static const char * simplefb_compatible[] = { "simple-framebuffer", NULL };
static const char * simplefb_compatible[] = {
"simple-framebuffer", NULL
};
int chosen_phandle, child;
chosen_phandle = OF_finddevice("/chosen");
@ -146,7 +148,8 @@ arm_simplefb_init_screen(void *cookie, struct vcons_screen *scr,
}
static int
arm_simplefb_ioctl(void *v, void *vs, u_long cmd, void *data, int flag, lwp_t *l)
arm_simplefb_ioctl(void *v, void *vs, u_long cmd, void *data, int flag,
lwp_t *l)
{
return EPASSTHROUGH;
}
@ -172,7 +175,8 @@ arm_simplefb_reconfig(void *arg, uint64_t new_addr)
bus_space_unmap(bst, arm_simplefb_bsh, arm_simplefb_size);
bus_space_map(bst, new_addr, arm_simplefb_size,
BUS_SPACE_MAP_LINEAR | BUS_SPACE_MAP_PREFETCHABLE, &arm_simplefb_bsh);
BUS_SPACE_MAP_LINEAR | BUS_SPACE_MAP_PREFETCHABLE,
&arm_simplefb_bsh);
sc->sc_bits = bus_space_vaddr(bst, arm_simplefb_bsh);
ri->ri_bits = sc->sc_bits;
@ -258,7 +262,8 @@ arm_simplefb_preattach(void)
#ifdef VCONS_DRAW_INTR
arm_simplefb_vcons_data.use_intr = 0;
#endif
vcons_init_screen(&arm_simplefb_vcons_data, &arm_simplefb_screen, 1, &defattr);
vcons_init_screen(&arm_simplefb_vcons_data, &arm_simplefb_screen, 1,
&defattr);
arm_simplefb_screen.scr_flags |= VCONS_SCREEN_IS_STATIC;
if (ri->ri_rows < 1 || ri->ri_cols < 1)