]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: cec: make cec_get_edid_spa_location() an inline function
authorHans Verkuil <hans.verkuil@cisco.com>
Thu, 13 Sep 2018 07:25:59 +0000 (03:25 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Nov 2018 19:12:49 +0000 (11:12 -0800)
commite4e97d13dd135eeb7fd70e4b9f33ebfd874a06c7
tree8963f9a6999d7745b81d5a3c59fcc8bd33d64922
parent239efda32abd24c270a0348f678cb3a99223189b
media: cec: make cec_get_edid_spa_location() an inline function

commit b915bf575d5b7774d0f22d57d6c143e07dcaade2 upstream.

This function is needed by both V4L2 and CEC, so move this to
cec.h as a static inline since there are no obvious shared
modules between the two subsystems.

This patch, together with the following ones, fixes a
dependency bug: if CEC_CORE is disabled, then building adv7604
(and other HDMI receivers) will fail because an essential
function is now stubbed out.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Cc: <stable@vger.kernel.org> # for v4.17 and up
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/cec/cec-edid.c
include/media/cec.h