I'm working on building a kernel module for an input device, and I noticed that in the module source, there's a couple calls to
input_get_keycode(data->input_dev, scancode, &keycode); When I was compiling I was getting errors that there's no function with that prototype.
Looking into the
input/input.c source code, this is the definition of
int input_get_keycode(struct input_dev *dev, struct input_keymap_entry *ke)
I tried to look online, and I found a couple obscure references to changing the kernel to be able to deal with large keymaps better, and apparently this function was changed to better handle that. Looking at an older source from input/input.c, the
input_get_keycode function was defined as
int input_get_keycode(struct input_dev *dev, unsigned int scancode, unsigned int *keycode)
My question is, when was this changed. Is there notes on the change? I'm building the
ubuntu natty kernel from git which is from my understanding from the
Is this a ubuntu specific change? Or is this a change in the mainline kernel. I also have the
maverick source from git which has the old style (3 input) function.