| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | #ifndef _SPARSE_KEYMAP_H |
|---|
| 2 | 3 | #define _SPARSE_KEYMAP_H |
|---|
| 3 | 4 | |
|---|
| 4 | 5 | /* |
|---|
| 5 | 6 | * 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. |
|---|
| 10 | 7 | */ |
|---|
| 11 | 8 | |
|---|
| 12 | 9 | #define KE_END 0 /* Indicates end of keymap */ |
|---|
| .. | .. |
|---|
| 23 | 20 | * private definitions. |
|---|
| 24 | 21 | * @code: Device-specific data identifying the button/switch |
|---|
| 25 | 22 | * @keycode: KEY_* code assigned to a key/button |
|---|
| 23 | + * @sw: struct with code/value used by KE_SW and KE_VSW |
|---|
| 26 | 24 | * @sw.code: SW_* code assigned to a switch |
|---|
| 27 | 25 | * @sw.value: Value that should be sent in an input even when KE_SW |
|---|
| 28 | 26 | * switch is toggled. KE_VSW switches ignore this field and |
|---|