Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/zaurus/dev Make LCD BrightnessUp/BrightnessDown wor...



details:   https://anonhg.NetBSD.org/src/rev/5781ab8029e7
branches:  trunk
changeset: 961630:5781ab8029e7
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Tue Apr 13 13:18:50 2021 +0000

description:
Make LCD BrightnessUp/BrightnessDown work on C7x0/860.

Patch from steleto:
 https://gist.github.com/steleto/10f62a074bff0c188fcc10c14ef40b5a
and also confirmed by me on SL-C700.

Worth to pullup to netbsd-9.

diffstat:

 sys/arch/zaurus/dev/w100lcd.c |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r af451db16633 -r 5781ab8029e7 sys/arch/zaurus/dev/w100lcd.c
--- a/sys/arch/zaurus/dev/w100lcd.c     Tue Apr 13 13:13:03 2021 +0000
+++ b/sys/arch/zaurus/dev/w100lcd.c     Tue Apr 13 13:18:50 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: w100lcd.c,v 1.2 2012/02/10 11:25:42 tsutsui Exp $ */
+/* $NetBSD: w100lcd.c,v 1.3 2021/04/13 13:18:50 tsutsui Exp $ */
 /*
  * Copyright (c) 2002, 2003  Genetec Corporation.  All rights reserved.
  * Written by Hiroyuki Bessho for Genetec Corporation.
@@ -39,7 +39,9 @@
  * LCD on/off switch and backlight brightness are done in lcdctl.c.
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: w100lcd.c,v 1.2 2012/02/10 11:25:42 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: w100lcd.c,v 1.3 2021/04/13 13:18:50 tsutsui Exp $");
+
+#include "lcdctl.h"
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -58,6 +60,9 @@
 
 #include <zaurus/zaurus/zaurus_var.h>
 #include <zaurus/dev/w100lcdvar.h>
+#if NLCDCTL > 0
+#include <zaurus/dev/lcdctlvar.h>
+#endif
 
 /*
  * wsdisplay glue



Home | Main Index | Thread Index | Old Index