Hi Russell, On Mon, Apr 20, 2009 at 12:13:47PM +0100, Russell King - ARM Linux wrote: > + > +static unsigned char normal_map[LX_NUMKEYCODES] = { Please chanege this to unsigned short since we _do_ allow changing this part of keymap from userspace and possible KEY_* values extend beyond unsigned char range. > +static unsigned char numlck_map[LX_NUMKEYCODES] = { > +static unsigned char fn_map[LX_NUMKEYCODES] = { These 2 will have to be unisgned short as well, unless you want to adjust lx_keyb_process_key() to cope with different keymap sizes... > + kbd->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_REP) | > + BIT_MASK(EV_PWR); > + kbd->keycode = normal_map; > + kbd->keycodesize = sizeof(unsigned char); And this should be "sizeof(normal_map[0]);" then. Otherwise you may add: Acked-by: Dmitry Torokhov <dtor@xxxxxxx> I assume the driver will be merged with the rest of LX changes through your tree, is that right? -- Dmitry -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html