]> git.baikalelectronics.ru Git - kernel.git/commit
media: atomisp-ov2680: Fix and simplify ov2680_q_exposure()
authorHans de Goede <hdegoede@redhat.com>
Sun, 7 Nov 2021 17:15:46 +0000 (17:15 +0000)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 15 Nov 2021 08:11:56 +0000 (08:11 +0000)
commitb25058b8103fe7430aebdd6de33d85dfc913b189
treefc1efbb708b78619cbe7fae7e3441455ffc82eea
parent624951791409a5d4475c9774c106d7f837b4917b
media: atomisp-ov2680: Fix and simplify ov2680_q_exposure()

Switch to ov2680_read_reg() to read all 24 bits in one go;
and the exposure value sits in bits 4-19 of the 24 bit exposure
register, so we need to shift the read value by 4 to report the
correct value.

Link: https://lore.kernel.org/linux-media/20211107171549.267583-9-hdegoede@redhat.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/i2c/atomisp-ov2680.c