input: ts: tp: Correct default permissions

Signed-off-by: claxten10 <claxten10@gmail.com>
This commit is contained in:
claxten10
2025-01-18 00:24:33 +00:00
committed by nisel
parent 9fd6db276d
commit 6f0f48552f

View File

@@ -5,7 +5,7 @@ struct kobject *touchpanel_kobj;
int tp_common_set_##type##_ops(struct tp_common_ops *ops) \
{ \
static struct kobj_attribute kattr = \
__ATTR(type, (S_IWUSR | S_IRUGO), NULL, NULL); \
__ATTR(type, (S_IWUSR | S_IWGRP | S_IRUSR | S_IRGRP), NULL, NULL); \
kattr.show = ops->show; \
kattr.store = ops->store; \
return sysfs_create_file(touchpanel_kobj, &kattr.attr); \
@@ -20,4 +20,4 @@ static int __init tp_common_init(void)
return -ENOMEM;
return 0;
}
core_initcall(tp_common_init);
core_initcall(tp_common_init);