Module Name:    src
Committed By:   nia
Date:           Sat Mar 14 21:18:50 UTC 2020

Modified Files:
        src/sys/dev/pckbport: synaptics.c

Log Message:
synaptics: Allow the max_speed sysctls to be set


To generate a diff of this commit:
cvs rdiff -u -r1.56 -r1.57 src/sys/dev/pckbport/synaptics.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/pckbport/synaptics.c
diff -u src/sys/dev/pckbport/synaptics.c:1.56 src/sys/dev/pckbport/synaptics.c:1.57
--- src/sys/dev/pckbport/synaptics.c:1.56	Sat Mar 14 19:29:39 2020
+++ src/sys/dev/pckbport/synaptics.c	Sat Mar 14 21:18:50 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: synaptics.c,v 1.56 2020/03/14 19:29:39 nia Exp $	*/
+/*	$NetBSD: synaptics.c,v 1.57 2020/03/14 21:18:50 nia Exp $	*/
 
 /*
  * Copyright (c) 2005, Steve C. Woodford
@@ -48,7 +48,7 @@
 #include "opt_pms.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: synaptics.c,v 1.56 2020/03/14 19:29:39 nia Exp $");
+__KERNEL_RCSID(0, "$NetBSD: synaptics.c,v 1.57 2020/03/14 21:18:50 nia Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -863,6 +863,9 @@ pms_sysctl_synaptics_verify(SYSCTLFN_ARG
 	if (node.sysctl_num == synaptics_gesture_length_nodenum ||
 	    node.sysctl_num == synaptics_edge_motion_delta_nodenum ||
 	    node.sysctl_num == synaptics_up_down_motion_delta_nodenum) {
+	    node.sysctl_num == synaptics_max_speed_x_nodenum ||
+	    node.sysctl_num == synaptics_max_speed_y_nodenum ||
+	    node.sysctl_num == synaptics_max_speed_z_nodenum) {
 		if (t < 0)
 			return (EINVAL);
 	} else

Reply via email to