Date: Sun, 15 Dec 2019 04:22:51 +0000 (UTC) From: Kyle Evans <kevans@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r355769 - head/sys/dev/kbd Message-ID: <201912150422.xBF4Mpfl035243@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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_ */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201912150422.xBF4Mpfl035243>