OSDN Git Service

media: ccs: Allow range in between I²C retries
authorSakari Ailus <sakari.ailus@linux.intel.com>
Fri, 13 Nov 2020 15:07:28 +0000 (16:07 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 3 Dec 2020 11:27:31 +0000 (12:27 +0100)
commit2dd4b57944cc49b0693e17e6169b6c6ca0166abd
treea158f99c075a7a7102458b5816cd985718f2b170
parent7389d01cc5d7cac6920f28e04afdf85c287e25a1
media: ccs: Allow range in between I²C retries

Make the delay between I²C access retries a range between 1 and 2 ms. Also
make the number of retries 10 instead of 5, in order not to reduce the
total amount of time.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/i2c/ccs/ccs-reg-access.c