aboutsummaryrefslogtreecommitdiff
path: root/drivers/input/cros_ec_keyb.c
diff options
context:
space:
mode:
authorSimon Glass2015-10-18 21:17:13 -0600
committerSimon Glass2015-11-19 20:13:40 -0700
commit66877b0f5fc96906d70f1264b3b8102d2156360f (patch)
treef8f031613a60f517294918d270803d99e2e72487 /drivers/input/cros_ec_keyb.c
parent92778b2784e15a1ac88d4cf64a12eee8163b221c (diff)
input: Add the keycode translation tables separately
Require the caller to add the keycode translation tables separately so that it can select which ones to use. In a later patch we will add the option to add German tables. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'drivers/input/cros_ec_keyb.c')
-rw-r--r--drivers/input/cros_ec_keyb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/input/cros_ec_keyb.c b/drivers/input/cros_ec_keyb.c
index dd150eeb459..41d8a6f4222 100644
--- a/drivers/input/cros_ec_keyb.c
+++ b/drivers/input/cros_ec_keyb.c
@@ -255,6 +255,7 @@ int drv_keyboard_init(void)
return -1;
}
config.input.read_keys = cros_ec_kbc_check;
+ input_add_tables(&config.input);
memset(&dev, '\0', sizeof(dev));
strcpy(dev.name, "cros-ec-keyb");