Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/epoc32/dev Fix WSDISPLAY_COMPAT_RAWKBD build
details: https://anonhg.NetBSD.org/src/rev/7678bd117c35
branches: trunk
changeset: 842770:7678bd117c35
user: skrll <skrll%NetBSD.org@localhost>
date: Wed Jul 24 08:37:53 2019 +0000
description:
Fix WSDISPLAY_COMPAT_RAWKBD build
diffstat:
sys/arch/epoc32/dev/epockbd.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diffs (37 lines):
diff -r 0e5f9f221d4b -r 7678bd117c35 sys/arch/epoc32/dev/epockbd.c
--- a/sys/arch/epoc32/dev/epockbd.c Wed Jul 24 06:53:42 2019 +0000
+++ b/sys/arch/epoc32/dev/epockbd.c Wed Jul 24 08:37:53 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: epockbd.c,v 1.2 2013/06/22 13:53:30 kiyohara Exp $ */
+/* $NetBSD: epockbd.c,v 1.3 2019/07/24 08:37:53 skrll Exp $ */
/*
* Copyright (c) 2013 KIYOHARA Takashi
* All rights reserved.
@@ -25,7 +25,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: epockbd.c,v 1.2 2013/06/22 13:53:30 kiyohara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: epockbd.c,v 1.3 2019/07/24 08:37:53 skrll Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -131,6 +131,9 @@
static int
epockbd_ioctl(void *v, u_long cmd, void *data, int flag, struct lwp *l)
{
+#ifdef WSDISPLAY_COMPAT_RAWKBD
+ struct epockbd_softc *sc = v;
+#endif
switch (cmd) {
case WSKBDIO_GTYPE:
@@ -146,7 +149,7 @@
#ifdef WSDISPLAY_COMPAT_RAWKBD
case WSKBDIO_SETMODE:
- *(int *)data == WSKBD_RAW;
+ *(int *)data = WSKBD_RAW;
sc->sc_flags |= EPOCKBD_FLAG_RAW;
/* Not yet...: return 0; */
Home |
Main Index |
Thread Index |
Old Index