DLKM/sarsensor:optimise code for sar sensor of abov

-solve issue that cat update_fw fail
-memory size is small ,modify 16 to 37

Change-Id: I0016227d3bfee90b2a7f92591925f8c30e446ebd
Signed-off-by: chenlj2 <chenlj2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1531184
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
chenlj2 2020-04-09 16:51:58 +08:00 • committed by Lijun Chen
commit 40d95f2381
2 changed files with 4 additions and 4 deletions

View file

@ -1360,7 +1360,7 @@ static ssize_t update_fw_show(struct class *class,
read_register(this, ABOV_VERSION_REG, &fw_version);
return snprintf(buf, 16, "ABOV CapSensor Firmware Version:0x%02x\n", fw_version);
return snprintf(buf, 37, "ABOV CapSensor Firmware Version:0x%02x\n", fw_version);
}
static ssize_t update_fw_store(struct class *class,
@ -1409,7 +1409,7 @@ static ssize_t force_update_fw_show(struct class *class,
read_register(this, ABOV_VERSION_REG, &fw_version);
return snprintf(buf, 16, "ABOV CapSensor Firmware Version:0x%02x\n", fw_version);
return snprintf(buf, 37, "ABOV CapSensor Firmware Version:0x%02x\n", fw_version);
}
static ssize_t force_update_fw_store(struct class *class,

View file

@ -1327,7 +1327,7 @@ static ssize_t update_fw_show(struct class *class,
read_register(this, ABOV_VERSION_REG, &fw_version);
return snprintf(buf, 16, "ABOV CapSensor Firmware Version:0x%02x\n", fw_version);
return snprintf(buf, 37, "ABOV CapSensor Firmware Version:0x%02x\n", fw_version);
}
static ssize_t update_fw_store(struct class *class,
@ -1376,7 +1376,7 @@ static ssize_t force_update_fw_show(struct class *class,
read_register(this, ABOV_VERSION_REG, &fw_version);
return snprintf(buf, 16, "ABOV CapSensor Firmware Version:0x%02x\n", fw_version);
return snprintf(buf, 37, "ABOV CapSensor Firmware Version:0x%02x\n", fw_version);
}
static ssize_t force_update_fw_store(struct class *class,