Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Nov 2017 22:09:10 +0000 (UTC)
From:      Vladimir Kondratyev <wulf@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r325294 - head/sys/dev/evdev
Message-ID:  <201711012209.vA1M9AXO044032@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: wulf
Date: Wed Nov  1 22:09:10 2017
New Revision: 325294
URL: https://svnweb.freebsd.org/changeset/base/325294

Log:
  evdev: Hide "kern.evdev.rcpt_mask" sysctl if kernel is compiled
  w/o EVDEV_SUPPORT as it's value has no meaning in this case.
  
  Now presence of this sysctl can be used for discovery if evdev support
  for hybrid devices is compiled into kernel or not.
  Hide "kern.evdev.sysmouse_t_axis" sysctl for the same reason.
  
  Reviewed by:		gonzo
  Approved by:		gonzo (mentor)
  MFC after:		1 week
  Differential Revision:	https://reviews.freebsd.org/D12676

Modified:
  head/sys/dev/evdev/evdev.c

Modified: head/sys/dev/evdev/evdev.c
==============================================================================
--- head/sys/dev/evdev/evdev.c	Wed Nov  1 21:22:23 2017	(r325293)
+++ head/sys/dev/evdev/evdev.c	Wed Nov  1 22:09:10 2017	(r325294)
@@ -64,12 +64,14 @@ MALLOC_DEFINE(M_EVDEV, "evdev", "evdev memory");
 int evdev_rcpt_mask = EVDEV_RCPT_SYSMOUSE | EVDEV_RCPT_KBDMUX;
 int evdev_sysmouse_t_axis = 0;
 
+#ifdef EVDEV_SUPPORT
 SYSCTL_NODE(_kern, OID_AUTO, evdev, CTLFLAG_RW, 0, "Evdev args");
 SYSCTL_INT(_kern_evdev, OID_AUTO, rcpt_mask, CTLFLAG_RW, &evdev_rcpt_mask, 0,
     "Who is receiving events: bit0 - sysmouse, bit1 - kbdmux, "
     "bit2 - mouse hardware, bit3 - keyboard hardware");
 SYSCTL_INT(_kern_evdev, OID_AUTO, sysmouse_t_axis, CTLFLAG_RW,
     &evdev_sysmouse_t_axis, 0, "Extract T-axis from 0-none, 1-ums, 2-psm");
+#endif
 
 static void evdev_start_repeat(struct evdev_dev *, uint16_t);
 static void evdev_stop_repeat(struct evdev_dev *);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201711012209.vA1M9AXO044032>