|
@@ -197,7 +197,7 @@ static ssize_t led_health_show(struct kobject *kobj,
|
|
|
|
|
|
|
|
ret = oem_ec_read_ram(2, 0x31, &data);
|
|
ret = oem_ec_read_ram(2, 0x31, &data);
|
|
|
|
|
|
|
|
- return sprintf(buf, "%02x\n", data);
|
|
|
|
|
|
|
+ return sprintf(buf, "%02x\n", led_health_val);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
static ssize_t led_health_store(struct kobject *kobj,
|
|
static ssize_t led_health_store(struct kobject *kobj,
|
|
@@ -237,7 +237,7 @@ static ssize_t led_charge_show(struct kobject *kobj, struct kobj_attribute *attr
|
|
|
|
|
|
|
|
ret = oem_ec_read_ram(2, 0x31, &data);
|
|
ret = oem_ec_read_ram(2, 0x31, &data);
|
|
|
|
|
|
|
|
- return sprintf(buf, "%02x\n", data);
|
|
|
|
|
|
|
+ return sprintf(buf, "%02x\n", led_charge_val);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
static ssize_t led_charge_store(struct kobject *kobj, struct kobj_attribute *attr,
|
|
static ssize_t led_charge_store(struct kobject *kobj, struct kobj_attribute *attr,
|