mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 21:54:34 -04:00
msm: camera: sensor: Read using addr and data type
[detail] Read using address and data type provided in xml CRs-Fixed: 2675042 Change-Id: Ice85f2ce4a6fa38a7de4b1bf4233449c52cd39e2 Signed-off-by: Vishal Verma <vishverm@codeaurora.org> Reviewed-on: https://gerrit.mot.com/1761431 Submit-Approved: Jira Key Tested-by: Jira Key SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Reviewed-by: Wang Liu <liuwang2@lenovo.com> (cherry picked from commit cab465769a5a610d37bccb99e8fb722ab2ffe188) Reviewed-on: https://gerrit.mot.com/1763255 Reviewed-by: Dawei Wang <wangdw10@motorola.com> (cherry picked from commit f1f2e1f642f7d1526d9ceb51e9947ceb98292862) Reviewed-on: https://gerrit.mot.com/1893806 Reviewed-by: Shuo Wang <wangsh18@motorola.com> Reviewed-by: Long Cheng <chengl1@motorola.com> Reviewed-by: Jian Zhang <zhangjo@motorola.com> Reviewed-by: Zhenxin Xi <xizx@motorola.com> Reviewed-by: Zhuoran Xu <xuzr3@motorola.com>
This commit is contained in:
parent
ae871fa71d
commit
e57ff4ba23
1 changed files with 1 additions and 1 deletions
|
|
@ -154,7 +154,7 @@ static int32_t cam_sensor_i2c_pkt_parse(struct cam_sensor_ctrl_t *s_ctrl,
|
|||
csl_packet = (struct cam_packet *)(generic_ptr +
|
||||
(uint32_t)config.offset);
|
||||
|
||||
if (cam_packet_util_validate_packet(csl_packet,
|
||||
if ((csl_packet == NULL) || cam_packet_util_validate_packet(csl_packet,
|
||||
remain_len)) {
|
||||
CAM_ERR(CAM_SENSOR, "Invalid packet params");
|
||||
rc = -EINVAL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue