media: cec/v4l2: move V4L2 specific CEC functions to V4L2
authorHans Verkuil <hans.verkuil@cisco.com>
Thu, 13 Sep 2018 07:40:56 +0000 (03:40 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Sep 2019 06:21:46 +0000 (08:21 +0200)
commit851308450a8f38f9f9b0b6591edd4ae286d4442f
treeae03833c25a41190817a64f69aeabf5aa7377669
parentc09d675f294b64c607ed87c946698836db2b9530
media: cec/v4l2: move V4L2 specific CEC functions to V4L2

[ Upstream commit 9cfd2753f8f3923f89cbb15f940f3aa0e7202d3e ]

Several CEC functions are actually specific for use with receivers,
i.e. they should be part of the V4L2 subsystem, not CEC.

These functions deal with validating and modifying EDIDs for (HDMI)
receivers, and they do not actually have anything to do with the CEC
subsystem and whether or not CEC is enabled. The problem was that if
the CEC_CORE config option was not set, then these functions would
become stubs, but that's not right: they should always be valid.

So replace the cec_ prefix by v4l2_ and move them to v4l2-dv-timings.c.
Update all drivers that call these accordingly.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Reported-by: Lars-Peter Clausen <lars@metafoo.de>
Cc: <stable@vger.kernel.org> # for v4.17 and up
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/cec/cec-edid.c
drivers/media/i2c/adv7604.c
drivers/media/i2c/adv7842.c
drivers/media/i2c/tc358743.c
drivers/media/platform/vivid/vivid-vid-cap.c
drivers/media/platform/vivid/vivid-vid-common.c
drivers/media/v4l2-core/v4l2-dv-timings.c
include/media/cec.h
include/media/v4l2-dv-timings.h