Files
android/drivers/input/touchscreen/tp_common.c
T
threeeye bc1d038eac REVVL 6 Pro kernel bring-up: full working tree snapshot (2026-09-12)
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)
2026-09-12 13:36:46 +00:00

30 lines
942 B
C

#include <linux/input/tp_common.h>
bool capacitive_keys_enabled;
struct kobject *touchpanel_kobj;
#define TS_ENABLE_FOPS(type) \
int tp_common_set_##type##_ops(struct tp_common_ops *ops) \
{ \
static struct kobj_attribute kattr = \
__ATTR(type, (S_IWUSR | S_IRUGO), NULL, NULL); \
kattr.show = ops->show; \
kattr.store = ops->store; \
return sysfs_create_file(touchpanel_kobj, &kattr.attr); \
}
TS_ENABLE_FOPS(capacitive_keys)
TS_ENABLE_FOPS(double_tap)
TS_ENABLE_FOPS(reversed_keys)
static int __init tp_common_init(void)
{
touchpanel_kobj = kobject_create_and_add("touchpanel", NULL);
if (!touchpanel_kobj)
return -ENOMEM;
return 0;
}
core_initcall(tp_common_init);