Fix typo.

This commit is contained in:
hkenken 2019-08-19 10:56:33 +00:00
parent 0de7be22dc
commit 1cd721f3f9
1 changed files with 5 additions and 4 deletions

View File

@ -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 oj6sh_accessops = {
};
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 self, void *aux)
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)