Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
22 lines
642 B
C
22 lines
642 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __ASM_ARCH_PXA930_ROTARY_H
|
|
#define __ASM_ARCH_PXA930_ROTARY_H
|
|
|
|
/* NOTE:
|
|
*
|
|
* rotary can be either interpreted as a ralative input event (e.g.
|
|
* REL_WHEEL or REL_HWHEEL) or a specific key event (e.g. UP/DOWN
|
|
* or LEFT/RIGHT), depending on if up_key & down_key are assigned
|
|
* or rel_code is assigned a non-zero value. When all are non-zero,
|
|
* up_key and down_key will be preferred.
|
|
*/
|
|
struct pxa930_rotary_platform_data {
|
|
int up_key;
|
|
int down_key;
|
|
int rel_code;
|
|
};
|
|
|
|
void __init pxa930_set_rotarykey_info(struct pxa930_rotary_platform_data *info);
|
|
|
|
#endif /* __ASM_ARCH_PXA930_ROTARY_H */
|