mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
DLKM/sar: Add fw mode detection for A96T346HW.
guam sar bringup: abov_sar_ptr is null pointer in abov_tk_fw_mode_enter function. Change-Id: Id336171d17fe1ad5a376fd079f206d688d23afd4 Signed-off-by: xiewen3 <xiewen3@motorola.com> Reviewed-on: https://gerrit.mot.com/1521635 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
176d2f2dc0
commit
326be4e3fc
1 changed files with 2 additions and 2 deletions
|
|
@ -1078,7 +1078,7 @@ static int abov_tk_fw_mode_enter(struct i2c_client *client)
|
|||
{
|
||||
int ret = 0;
|
||||
unsigned char buf[40] = {0, };
|
||||
pabovXX_t this = abov_sar_ptr;
|
||||
pabov_platform_data_t pplatData = client->dev.platform_data;
|
||||
|
||||
buf[0] = 0xAC;
|
||||
buf[1] = 0x5B;
|
||||
|
|
@ -1091,7 +1091,7 @@ static int abov_tk_fw_mode_enter(struct i2c_client *client)
|
|||
SLEEP(5);
|
||||
|
||||
ret = i2c_master_recv(client, buf, 1);
|
||||
if (buf[0] != this->board->fw_mode_ret) {
|
||||
if (buf[0] != pplatData->fw_mode_ret) {
|
||||
LOG_ERR("Enter fw mode fail,device id:0x%02x\n", buf[0]);
|
||||
return -EIO;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue