mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 13:49:24 -04:00
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:
parent
44eaba9e38
commit
40d95f2381
2 changed files with 4 additions and 4 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue