]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - include/linux/platform_data/keyboard-pxa930_rotary.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[mirror_ubuntu-bionic-kernel.git] / include / linux / platform_data / keyboard-pxa930_rotary.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
e0ee6298
YY
2#ifndef __ASM_ARCH_PXA930_ROTARY_H
3#define __ASM_ARCH_PXA930_ROTARY_H
4
5/* NOTE:
6 *
7 * rotary can be either interpreted as a ralative input event (e.g.
8 * REL_WHEEL or REL_HWHEEL) or a specific key event (e.g. UP/DOWN
9 * or LEFT/RIGHT), depending on if up_key & down_key are assigned
10 * or rel_code is assigned a non-zero value. When all are non-zero,
11 * up_key and down_key will be preferred.
12 */
13struct pxa930_rotary_platform_data {
14 int up_key;
15 int down_key;
16 int rel_code;
17};
18
19void __init pxa930_set_rotarykey_info(struct pxa930_rotary_platform_data *info);
20
21#endif /* __ASM_ARCH_PXA930_ROTARY_H */