svn commit: r355769 - head/sys/dev/kbd

Kyle Evans kevans at FreeBSD.org
Sun Dec 15 04:22:51 UTC 2019


Author: kevans
Date: Sun Dec 15 04:22:50 2019
New Revision: 355769
URL: https://svnweb.freebsd.org/changeset/base/355769

Log:
  kbd: drop _KERNEL #ifdef in kbdreg.h
  
  This #ifdef is misleading as there are actually no user-serviceable parts
  inside and, as far as I can tell, there is no pollution leading from
  userland to this header. Furthermore, it becomes a slight nuisance when
  attempting to move things around in this header.

Modified:
  head/sys/dev/kbd/kbdreg.h

Modified: head/sys/dev/kbd/kbdreg.h
==============================================================================
--- head/sys/dev/kbd/kbdreg.h	Sun Dec 15 04:20:57 2019	(r355768)
+++ head/sys/dev/kbd/kbdreg.h	Sun Dec 15 04:22:50 2019	(r355769)
@@ -215,8 +215,6 @@ typedef struct keyboard_driver {
     int			(*configure)(int); /* backdoor for the console driver */
 } keyboard_driver_t;
 
-#ifdef _KERNEL
-
 #define KEYBOARD_DRIVER(name, sw, config)		\
 	static struct keyboard_driver name##_kbd_driver = { \
 		{ NULL }, #name, &sw, config		\
@@ -307,7 +305,5 @@ kbd_diag_t		genkbd_diag;
 int 	genkbd_commonioctl(keyboard_t *kbd, u_long cmd, caddr_t arg);
 int 	genkbd_keyaction(keyboard_t *kbd, int keycode, int up,
 			 int *shiftstate, int *accents);
-
-#endif /* _KERNEL */
 
 #endif /* !_DEV_KBD_KBDREG_H_ */


More information about the svn-src-head mailing list