Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 388a111e authored by Xu Han's avatar Xu Han
Browse files

msm: camera: sensor: change loop index to int type



Loop index as 8 bit type causes infinite loop when iteration
is greater than 256. Change it to int and increase macro
I2C_SEQ_REG_DATA_MAX to support larger data burst.

Change-Id: I3aa0c60ca828ce31fa287d15e61f6cf476a0f2c5
Signed-off-by: default avatarXu Han <hanxu@codeaurora.org>
parent 07c0864f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -136,7 +136,7 @@ int32_t msm_camera_cci_i2c_write_seq(struct msm_camera_i2c_client *client,
	uint32_t addr, uint8_t *data, uint32_t num_byte)
{
	int32_t rc = -EFAULT;
	uint8_t i = 0;
	uint32_t i = 0;
	struct msm_camera_cci_ctrl cci_ctrl;
	struct msm_camera_i2c_reg_array *reg_conf_tbl = NULL;

+1 −1
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@
#define CSI_DECODE_12BIT        3
#define CSI_DECODE_DPCM_10_8_10 5
#define MAX_CID                 16
#define I2C_SEQ_REG_DATA_MAX    256
#define I2C_SEQ_REG_DATA_MAX    1024
#define I2C_REG_DATA_MAX       (8*1024)

#define MSM_V4L2_PIX_FMT_META v4l2_fourcc('M', 'E', 'T', 'A') /* META */