media: i2c: imx290: Move the settle time delay out of loop
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Fri, 12 Jun 2020 13:53:54 +0000 (15:53 +0200)
committerpopcornmix <popcornmix@gmail.com>
Wed, 1 Jul 2020 15:34:16 +0000 (16:34 +0100)
commitcf88003b4ecde6bed5d9dfc356dcc8fa8291ba07
tree0b35ebec2eb677fa31d59730e7f406effc72ac1f
parent971a00d6a068e48af0271740479966752676ebd4
media: i2c: imx290: Move the settle time delay out of loop

Commit 6544af9b04b4484867c234ba0be1b5008e4a14ee upstream.

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>
Signed-off-by: Andrey Konovalov <andrey.konovalov@linaro.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/i2c/imx290.c