diff options
author | 2020-11-02 18:35:38 +0000 | |
---|---|---|
committer | 2020-11-02 18:35:38 +0000 | |
commit | 403390599985c40b7383efeb3e6faf3cb9206785 (patch) | |
tree | e1c679c331db723c03cf7e6b452313cfc9dc8cfc | |
parent | Restore abstraction of register saving into macros in frameasm.h (diff) | |
download | wireguard-openbsd-403390599985c40b7383efeb3e6faf3cb9206785.tar.xz wireguard-openbsd-403390599985c40b7383efeb3e6faf3cb9206785.zip |
Set initial default display brightness via of_setbrightness() to ensure
wscons and ofw are in sync.
ok kn@
-rw-r--r-- | sys/arch/macppc/macppc/ofw_machdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/macppc/macppc/ofw_machdep.c b/sys/arch/macppc/macppc/ofw_machdep.c index cfb12a3c712..ef1a31f1362 100644 --- a/sys/arch/macppc/macppc/ofw_machdep.c +++ b/sys/arch/macppc/macppc/ofw_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ofw_machdep.c,v 1.61 2020/10/27 19:40:08 tobhe Exp $ */ +/* $OpenBSD: ofw_machdep.c,v 1.62 2020/11/02 18:35:38 tobhe Exp $ */ /* $NetBSD: ofw_machdep.c,v 1.1 1996/09/30 16:34:50 ws Exp $ */ /* @@ -476,8 +476,8 @@ of_display_console(void) if (OF_getnodebyname(0, "backlight") != 0) { cons_backlight_available = 1; - cons_brightness = MAX_BRIGHTNESS; cons_backlight = WSDISPLAYIO_VIDEO_ON; + of_setbrightness(DEFAULT_BRIGHTNESS); /* wsconsctl hooks */ ws_get_param = ofw_get_param; |