Skip to content

Instantly share code, notes, and snippets.

@steleto
Created January 2, 2020 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steleto/10f62a074bff0c188fcc10c14ef40b5a to your computer and use it in GitHub Desktop.
Save steleto/10f62a074bff0c188fcc10c14ef40b5a to your computer and use it in GitHub Desktop.
C700で「カナひら」+「3」「4」で輝度変更するためのパッチ
diff --git a/sys/arch/zaurus/dev/w100lcd.c b/sys/arch/zaurus/dev/w100lcd.c
index c24eff13385..79622442ede 100644
--- a/sys/arch/zaurus/dev/w100lcd.c
+++ b/sys/arch/zaurus/dev/w100lcd.c
@@ -41,6 +41,8 @@
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: w100lcd.c,v 1.2 2012/02/10 11:25:42 tsutsui Exp $");
+#include "lcdctl.h"
+
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/bus.h>
@@ -58,6 +60,9 @@ __KERNEL_RCSID(0, "$NetBSD: w100lcd.c,v 1.2 2012/02/10 11:25:42 tsutsui Exp $");
#include <zaurus/zaurus/zaurus_var.h>
#include <zaurus/dev/w100lcdvar.h>
+#if NLCDCTL > 0
+#include <zaurus/dev/lcdctlvar.h>
+#endif
/*
* wsdisplay glue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment