media: adv7842: remove spurious & and fix vga_edid size
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Thu, 10 Jun 2021 06:11:40 +0000 (08:11 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 17 Jun 2021 08:25:23 +0000 (10:25 +0200)
commit7629cbd6872f6aef0b7f1e20812194f4f4249bb2
tree98e2519bf6a727d7b6a460378184b0381ac1daa1
parent00ae4ebc2d07db50d8432ebec3158c96b36f1a6d
media: adv7842: remove spurious & and fix vga_edid size

No need to use & to get the start address of an array.

Fix the size of vga_edid.edid to a single block (128 bytes) to fix
this smatch error:

adv7842.c:2538 adv7842_set_edid() error: memcpy() '&state->vga_edid.edid' too small (128 vs 512)

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