media: adv7511-v4l2: correctly report EDIDs of 1 block
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Fri, 26 Mar 2021 09:03:32 +0000 (10:03 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 6 Apr 2021 17:35:26 +0000 (19:35 +0200)
commitb24bc3ab010970e976dc363d2ca0796516d0d763
tree48d57f078df4f81c5b0dd23a70a851ecff6e9f2b
parentc730ff32b917c814c1d86343328f0518a94114c0
media: adv7511-v4l2: correctly report EDIDs of 1 block

If the EDID has an odd number of blocks (usually just 1, but the
same problem occurs with 3 blocks), then VIDIOC_G_EDID reported 2
(or 4) blocks. Fix this.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/i2c/adv7511-v4l2.c