|
@@ -104,9 +104,8 @@ static ssize_t fw_version_show(struct kobject *kobj, struct kobj_attribute *attr
|
|
|
oem_ec_read_ram(2, i, &data[i]);
|
|
oem_ec_read_ram(2, i, &data[i]);
|
|
|
}
|
|
}
|
|
|
// This needs to be completed here, obtain the real version number
|
|
// This needs to be completed here, obtain the real version number
|
|
|
- sprintf(buf, "%02x%02x%02x%02x\n", data[0], data[1], data[2], data[3]);
|
|
|
|
|
|
|
+ return sprintf(buf, "%02x%02x%02x%02x\n", data[0], data[1], data[2], data[3]);
|
|
|
|
|
|
|
|
- return 8;
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
static ssize_t fw_version_store(struct kobject *kobj, struct kobj_attribute *attr,
|
|
static ssize_t fw_version_store(struct kobject *kobj, struct kobj_attribute *attr,
|