]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.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)
committerJuerg Haefliger <juergh@canonical.com>
Wed, 24 Jul 2019 01:58:27 +0000 (19:58 -0600)
commitce0ace31bde475fec2a8d58ea4d8ad0757819502
tree28cf1ada9c489d489f393e4410b2e8af8887fea5
parent3d31ac5004f9dd1675d9ff2145bde851afa3b111
media: cec: make cec_get_edid_spa_location() an inline function

BugLink: https://bugs.launchpad.net/bugs/1836802
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>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/media/cec/cec-edid.c
include/media/cec.h