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.
This commit is contained in:
parent
4bf95d00ce
commit
5ca70a4673
@ -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 \
|
||||
@ -308,6 +306,4 @@ 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_ */
|
||||
|
Loading…
Reference in New Issue
Block a user