Mon Feb 10 15:29:05 2020 UTC ()
Fix typo in sysctl node name


(ryoon)
diff -r1.12 -r1.13 src/sys/dev/pckbport/alps.c

cvs diff -r1.12 -r1.13 src/sys/dev/pckbport/alps.c (expand / switch to unified diff)

--- src/sys/dev/pckbport/alps.c 2019/05/28 08:59:35 1.12
+++ src/sys/dev/pckbport/alps.c 2020/02/10 15:29:05 1.13
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: alps.c,v 1.12 2019/05/28 08:59:35 msaitoh Exp $ */ 1/* $NetBSD: alps.c,v 1.13 2020/02/10 15:29:05 ryoon Exp $ */
2 2
3/*- 3/*-
4 * Copyright (c) 2017 Ryo ONODERA <ryo@tetera.org> 4 * Copyright (c) 2017 Ryo ONODERA <ryo@tetera.org>
5 * Copyright (c) 2008 Jared D. McNeill <jmcneill@invisible.ca> 5 * Copyright (c) 2008 Jared D. McNeill <jmcneill@invisible.ca>
6 * All rights reserved. 6 * All rights reserved.
7 * 7 *
8 * Redistribution and use in source and binary forms, with or without 8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions 9 * modification, are permitted provided that the following conditions
10 * are met: 10 * are met:
11 * 1. Redistributions of source code must retain the above copyright 11 * 1. Redistributions of source code must retain the above copyright
12 * notice, this list of conditions and the following disclaimer. 12 * notice, this list of conditions and the following disclaimer.
13 * 2. Redistributions in binary form must reproduce the above copyright 13 * 2. Redistributions in binary form must reproduce the above copyright
14 * notice, this list of conditions and the following disclaimer in the 14 * notice, this list of conditions and the following disclaimer in the
@@ -20,27 +20,27 @@ @@ -20,27 +20,27 @@
20 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 20 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
21 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
22 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
25 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27 * POSSIBILITY OF SUCH DAMAGE. 27 * POSSIBILITY OF SUCH DAMAGE.
28 */ 28 */
29 29
30#include "opt_pms.h" 30#include "opt_pms.h"
31 31
32#include <sys/cdefs.h> 32#include <sys/cdefs.h>
33__KERNEL_RCSID(0, "$NetBSD: alps.c,v 1.12 2019/05/28 08:59:35 msaitoh Exp $"); 33__KERNEL_RCSID(0, "$NetBSD: alps.c,v 1.13 2020/02/10 15:29:05 ryoon Exp $");
34 34
35#include <sys/param.h> 35#include <sys/param.h>
36#include <sys/systm.h> 36#include <sys/systm.h>
37#include <sys/device.h> 37#include <sys/device.h>
38#include <sys/kernel.h> 38#include <sys/kernel.h>
39#include <sys/sysctl.h> 39#include <sys/sysctl.h>
40#include <sys/bus.h> 40#include <sys/bus.h>
41#include <sys/bitops.h> 41#include <sys/bitops.h>
42 42
43#include <dev/wscons/wsconsio.h> 43#include <dev/wscons/wsconsio.h>
44#include <dev/wscons/wsmousevar.h> 44#include <dev/wscons/wsmousevar.h>
45 45
46#include <dev/pckbport/pckbportvar.h> 46#include <dev/pckbport/pckbportvar.h>
@@ -103,27 +103,27 @@ pms_sysctl_alps(struct sysctllog **clog) @@ -103,27 +103,27 @@ pms_sysctl_alps(struct sysctllog **clog)
103 if ((rc = sysctl_createv(clog, 0, NULL, &node, 103 if ((rc = sysctl_createv(clog, 0, NULL, &node,
104 CTLFLAG_PERMANENT | CTLFLAG_READWRITE, 104 CTLFLAG_PERMANENT | CTLFLAG_READWRITE,
105 CTLTYPE_INT, "touchpad_xy_precision_shift", 105 CTLTYPE_INT, "touchpad_xy_precision_shift",
106 SYSCTL_DESCR("Touchpad X/Y-axis precision shift value"), 106 SYSCTL_DESCR("Touchpad X/Y-axis precision shift value"),
107 pms_sysctl_alps_verify, 0, 107 pms_sysctl_alps_verify, 0,
108 &alps_touchpad_xy_unprecision, 108 &alps_touchpad_xy_unprecision,
109 0, CTL_HW, root_num, CTL_CREATE, 109 0, CTL_HW, root_num, CTL_CREATE,
110 CTL_EOL)) != 0) 110 CTL_EOL)) != 0)
111 goto err; 111 goto err;
112 alps_touchpad_xy_unprecision_nodenum = node->sysctl_num; 112 alps_touchpad_xy_unprecision_nodenum = node->sysctl_num;
113 113
114 if ((rc = sysctl_createv(clog, 0, NULL, &node, 114 if ((rc = sysctl_createv(clog, 0, NULL, &node,
115 CTLFLAG_PERMANENT | CTLFLAG_READWRITE, 115 CTLFLAG_PERMANENT | CTLFLAG_READWRITE,
116 CTLTYPE_INT, "tackstick_xy_precision_shift", 116 CTLTYPE_INT, "trackstick_xy_precision_shift",
117 SYSCTL_DESCR("Trackstick X/Y-axis precision value"), 117 SYSCTL_DESCR("Trackstick X/Y-axis precision value"),
118 pms_sysctl_alps_verify, 0, 118 pms_sysctl_alps_verify, 0,
119 &alps_trackstick_xy_precision, 119 &alps_trackstick_xy_precision,
120 0, CTL_HW, root_num, CTL_CREATE, 120 0, CTL_HW, root_num, CTL_CREATE,
121 CTL_EOL)) != 0) 121 CTL_EOL)) != 0)
122 goto err; 122 goto err;
123 alps_trackstick_xy_precision_nodenum = node->sysctl_num; 123 alps_trackstick_xy_precision_nodenum = node->sysctl_num;
124 124
125 return; 125 return;
126 126
127err: 127err:
128 aprint_error("%s: sysctl_createv failed (rc = %d)\n", 128 aprint_error("%s: sysctl_createv failed (rc = %d)\n",
129 __func__, rc); 129 __func__, rc);