From 723a245967972fc8e552dc6d50bf6b23cb0b135b Mon Sep 17 00:00:00 2001 From: "Andries E. Brouwer" Date: Fri, 11 Oct 2002 16:02:20 +0200 Subject: Since 2.5.32 the keyboard repeat code was broken. The reason Vojtech broke it was the stupid name of a field in struct kbd_repeat, namely "rate". Every sane person expects that a rate has dimension [1/sec], but here the "rate" is a time period measured in msec. So, the patch below first of all fixes the code, and secondly changes the name. Since Vojtech used PERIOD as index, I also used period as field name in the struct. Half of the stuff below is actually from Alan Stern. Andries --- include/linux/kd.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/linux/kd.h') diff --git a/include/linux/kd.h b/include/linux/kd.h index 986ef61c9df9..9eacfd158976 100644 --- a/include/linux/kd.h +++ b/include/linux/kd.h @@ -134,7 +134,8 @@ struct kbkeycode { struct kbd_repeat { int delay; /* in msec; <= 0: don't change */ - int rate; /* in msec; <= 0: don't change */ + int period; /* in msec; <= 0: don't change */ + /* earlier this field was misnamed "rate" */ }; #define KDKBDREP 0x4B52 /* set keyboard delay/repeat rate; -- cgit v1.2.3