Lines Matching full:keymap
13 #include <linux/input/sparse-keymap.h>
58 * Keymap for WMI privacy events of type 0x0012
294 struct key_entry *keymap; in dell_privacy_wmi_probe() local
312 /* remap the wmi keymap event to new keymap */ in dell_privacy_wmi_probe()
313 keymap = kcalloc(ARRAY_SIZE(dell_wmi_keymap_type_0012), in dell_privacy_wmi_probe()
315 if (!keymap) in dell_privacy_wmi_probe()
318 /* remap the keymap code with Dell privacy key type 0x12 as prefix in dell_privacy_wmi_probe()
322 keymap[i] = dell_wmi_keymap_type_0012[i]; in dell_privacy_wmi_probe()
323 keymap[i].code |= (0x0012 << 16); in dell_privacy_wmi_probe()
325 ret = sparse_keymap_setup(priv->input_dev, keymap, NULL); in dell_privacy_wmi_probe()
326 kfree(keymap); in dell_privacy_wmi_probe()