hc
2024-05-10 ee930fffee469d076998274a2ca55e13dc1efb67
kernel/include/linux/input/sparse-keymap.h
....@@ -1,12 +1,9 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 #ifndef _SPARSE_KEYMAP_H
23 #define _SPARSE_KEYMAP_H
34
45 /*
56 * Copyright (c) 2009 Dmitry Torokhov
6
- *
7
- * This program is free software; you can redistribute it and/or modify it
8
- * under the terms of the GNU General Public License version 2 as published by
9
- * the Free Software Foundation.
107 */
118
129 #define KE_END 0 /* Indicates end of keymap */
....@@ -23,6 +20,7 @@
2320 * private definitions.
2421 * @code: Device-specific data identifying the button/switch
2522 * @keycode: KEY_* code assigned to a key/button
23
+ * @sw: struct with code/value used by KE_SW and KE_VSW
2624 * @sw.code: SW_* code assigned to a switch
2725 * @sw.value: Value that should be sent in an input even when KE_SW
2826 * switch is toggled. KE_VSW switches ignore this field and