aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>2019-12-19 22:49:14 +0530
committerManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>2019-12-19 23:41:40 +0530
commitc6d04dab3f44f65064a942904568474f31e3e901 (patch)
tree8030b2eed7e86b03ee58df8fe90d246d52412d84
parent0e28f9016d9b09801efaa066af0867bf45a29703 (diff)
download96b-common-imx290.tar.gz
media: i2c: imx290: Move the settle time delay out of loopimx290
The 10ms settle time is needed only at the end of all consecutive register writes. So move the delay to outside of the for loop of imx290_set_register_array(). Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
-rw-r--r--drivers/media/i2c/imx290.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/i2c/imx290.c b/drivers/media/i2c/imx290.c
index 52f1e470b507..fb6d3f649a5a 100644
--- a/drivers/media/i2c/imx290.c
+++ b/drivers/media/i2c/imx290.c
@@ -344,11 +344,11 @@ static int imx290_set_register_array(struct imx290 *imx290,
ret = imx290_write_reg(imx290, settings->reg, settings->val);
if (ret < 0)
return ret;
-
- /* Settle time is 10ms for all registers */
- msleep(10);
}
+ /* Provide 10ms settle time */
+ msleep(10);
+
return 0;
}