OSDN Git Service

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)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 24 Sep 2018 13:11:04 +0000 (09:11 -0400)
commit9cfd2753f8f3923f89cbb15f940f3aa0e7202d3e
treecb3b101a0a9bb43a3af334416e8ccdd5bc639317
parente81bff39489a06384822bb38ce7a59f9e365bbe9
media: cec/v4l2: move V4L2 specific CEC functions to V4L2

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>
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