media: adv7842: support 1 block EDIDs, fix clearing EDID
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 7 Apr 2021 14:16:18 +0000 (16:16 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Fri, 9 Apr 2021 11:18:05 +0000 (13:18 +0200)
commit3e057b8a5f99bb0bd65d56ab6f543bb6fd1e7b40
tree805b13773974ed8870eb380a69f84992540a2212
parente0a4205d656d1d2eb3e3cc82f68adca820b0418d
media: adv7842: support 1 block EDIDs, fix clearing EDID

Add support for EDIDs consisting of one EDID block.

Related to this, improve CEC physical address handling.

Clearing the EDID caused a bug since v4l2_calc_aspect_ratio() was
called with a NULL pointer.

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