From 8c307173959ddfbfab6082c97a24850d8c77ffa6 Mon Sep 17 00:00:00 2001 From: davidycchen Date: Fri, 1 Jul 2022 09:36:27 +0800 Subject: synaptics: modify the sysfs file permission Modify the file permission from 664 to 644. Bug: 237645475 Test: screen protector mode works fine. Signed-off-by: davidycchen Change-Id: Ic41c00bed6210e84283bfac8779a058dae92e2e4 --- syna_tcm2_sysfs.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/syna_tcm2_sysfs.c b/syna_tcm2_sysfs.c index 938c9fc..9b92c62 100644 --- a/syna_tcm2_sysfs.c +++ b/syna_tcm2_sysfs.c @@ -881,7 +881,7 @@ exit: } static struct kobj_attribute kobj_attr_get_raw_data = - __ATTR(get_raw_data, 0664, syna_sysfs_get_raw_data_show, syna_sysfs_get_raw_data_store); + __ATTR(get_raw_data, 0644, syna_sysfs_get_raw_data_show, syna_sysfs_get_raw_data_store); /** * syna_sysfs_high_sensitivity_show() @@ -970,7 +970,7 @@ static ssize_t syna_sysfs_high_sensitivity_store(struct kobject *kobj, } static struct kobj_attribute kobj_attr_high_sensitivity = - __ATTR(high_sensitivity, 0664, syna_sysfs_high_sensitivity_show, + __ATTR(high_sensitivity, 0644, syna_sysfs_high_sensitivity_show, syna_sysfs_high_sensitivity_store); /** @@ -1063,7 +1063,7 @@ static ssize_t syna_sysfs_fw_grip_store(struct kobject *kobj, } static struct kobj_attribute kobj_attr_fw_grip = - __ATTR(fw_grip, 0664, syna_sysfs_fw_grip_show, + __ATTR(fw_grip, 0644, syna_sysfs_fw_grip_show, syna_sysfs_fw_grip_store); /** @@ -1156,7 +1156,7 @@ static ssize_t syna_sysfs_fw_palm_store(struct kobject *kobj, } static struct kobj_attribute kobj_attr_fw_palm = - __ATTR(fw_palm, 0664, syna_sysfs_fw_palm_show, + __ATTR(fw_palm, 0644, syna_sysfs_fw_palm_show, syna_sysfs_fw_palm_store); /** @@ -1241,7 +1241,7 @@ static ssize_t syna_sysfs_mf_mode_store(struct kobject *kobj, } static struct kobj_attribute kobj_attr_mf_mode = - __ATTR(mf_mode, 0664, syna_sysfs_mf_mode_show, + __ATTR(mf_mode, 0644, syna_sysfs_mf_mode_show, syna_sysfs_mf_mode_store); /** @@ -1329,7 +1329,7 @@ static ssize_t syna_sysfs_compression_threshold_store(struct kobject *kobj, } static struct kobj_attribute kobj_attr_compression_threshold = - __ATTR(compression_threshold, 0664, syna_sysfs_compression_threshold_show, + __ATTR(compression_threshold, 0644, syna_sysfs_compression_threshold_show, syna_sysfs_compression_threshold_store); /** -- cgit v1.2.3