Module Name: src Committed By: hkenken Date: Mon Aug 19 10:56:33 UTC 2019
Modified Files: src/sys/dev/spi: oj6sh.c Log Message: Fix typo. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/dev/spi/oj6sh.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/spi/oj6sh.c diff -u src/sys/dev/spi/oj6sh.c:1.3 src/sys/dev/spi/oj6sh.c:1.4 --- src/sys/dev/spi/oj6sh.c:1.3 Thu Jul 4 11:13:26 2019 +++ src/sys/dev/spi/oj6sh.c Mon Aug 19 10:56:33 2019 @@ -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 const struct wsmouse_accessops oj }; 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 @@ oj6sh_attach(device_t parent, device_t s 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 @@ oj6sh_cb(struct work *wk, void *arg) 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)