Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/spi Fix typo.



details:   https://anonhg.NetBSD.org/src/rev/9ddbe0b97700
branches:  trunk
changeset: 453605:9ddbe0b97700
user:      hkenken <hkenken%NetBSD.org@localhost>
date:      Mon Aug 19 10:56:33 2019 +0000

description:
Fix typo.

diffstat:

 sys/dev/spi/oj6sh.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (44 lines):

diff -r fc3fd6faf09d -r 9ddbe0b97700 sys/dev/spi/oj6sh.c
--- a/sys/dev/spi/oj6sh.c       Mon Aug 19 10:53:31 2019 +0000
+++ b/sys/dev/spi/oj6sh.c       Mon Aug 19 10:56:33 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: oj6sh.c,v 1.3 2019/07/04 11:13:26 hkenken Exp $        */
+/*     $NetBSD: oj6sh.c,v 1.4 2019/08/19 10:56:33 hkenken Exp $        */
 
 /*
  * Copyright (c) 2014  Genetec Corporation.  All rights reserved.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: oj6sh.c,v 1.3 2019/07/04 11:13:26 hkenken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: oj6sh.c,v 1.4 2019/08/19 10:56:33 hkenken Exp $");
 
 #include "opt_oj6sh.h"
 
@@ -127,7 +127,7 @@
 };
 
 static int
-oj6sh_match(device_t parent, cfdata_t match, void *aux)
+oj6sh_match(device_t parent, cfdata_t cf, void *aux)
 {
        struct spi_attach_args *sa = aux;
 
@@ -180,6 +180,7 @@
        struct spi_attach_args *sa = aux;
        struct wsmousedev_attach_args a;
 
+       aprint_naive("\n");
        aprint_normal(": OJ6SH-T25 Optical Joystick\n");
 
        mutex_init(&sc->sc_lock, MUTEX_DEFAULT, IPL_NONE);
@@ -229,7 +230,7 @@
        DPRINTF(3,("%s: x = %d, y = %d\n", device_xname(sc->sc_dev),
                delta.x, delta.y));
 
-#if defined(J6SH_DOWN_Y_LEFT_X)
+#if defined(OJ6SH_DOWN_Y_LEFT_X)
        y = -delta.y;
        x = -delta.x;
 #elif defined(OJ6SH_UP_X_LEFT_Y)



Home | Main Index | Thread Index | Old Index