Forráskód Böngészése

修复客户反馈的temp_input设备节点的权限

qidong.liu 1 hónapja
szülő
commit
d0d1bbe389
1 módosított fájl, 3 hozzáadás és 3 törlés
  1. 3 3
      fan.c

+ 3 - 3
fan.c

@@ -4221,10 +4221,10 @@ static struct kobj_attribute ac_power =
     __ATTR(ac_power, 0644, ac_power_show, ac_power_store);
 
 static struct kobj_attribute temp1_input =
-    __ATTR(temp1_input, 0644, temp1_input_show, temp1_input_store);
+    __ATTR(temp1_input, 0444, temp1_input_show, temp1_input_store);
 
 static struct kobj_attribute temp2_input =
-    __ATTR(temp2_input, 0644, temp2_input_show, temp2_input_store);
+    __ATTR(temp2_input, 0444, temp2_input_show, temp2_input_store);
 
 static struct kobj_attribute fan1_input =
     __ATTR(fan1_input, 0644, fan1_input_show, fan1_input_store);
@@ -4255,7 +4255,7 @@ static struct attribute *fan_attrs[] = {
     &pwm2_enable.attr,
     &temp1_input.attr,
     &temp2_input.attr,
-    &power_flag.attr,
+    // &power_flag.attr,
     &ac_power.attr,
     &voltage_vcore.attr,
 	&voltage_vbat.attr,