Files
dianlujitao 3c1638f117 drivers/: touchscreen: Add an interface to expose TP features to userspace
* Needs to implement and register ops from TP driver
 * Access them via /sys/touchpanel/*
 * Export capacitive keys status

Change-Id: I45e6dd79e1c6866f99fbb285fe6e9f6666017c3d
2025-10-18 10:51:04 +00:00

12 lines
508 B
C

#include <linux/kobject.h>
extern bool capacitive_keys_enabled;
extern struct kobject *touchpanel_kobj;
struct tp_common_ops {
ssize_t (*show)(struct kobject *kobj, struct kobj_attribute *attr,
char *buf);
ssize_t (*store)(struct kobject *kobj, struct kobj_attribute *attr,
const char *buf, size_t count);
};
int tp_common_set_capacitive_keys_ops(struct tp_common_ops *ops);
int tp_common_set_double_tap_ops(struct tp_common_ops *ops);
int tp_common_set_reversed_keys_ops(struct tp_common_ops *ops);