aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/cec/cec-edid.c
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2018-09-13 08:00:39 -0400
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-24 09:11:06 -0400
commitf94d463f1b7f83d465ed77521821583dbcdaa3c5 (patch)
tree39709af389e0f4658b6737d17f1526d094b2ea71 /drivers/media/cec/cec-edid.c
parentmedia: cec/v4l2: move V4L2 specific CEC functions to V4L2 (diff)
downloadlinux-dev-f94d463f1b7f83d465ed77521821583dbcdaa3c5.tar.xz
linux-dev-f94d463f1b7f83d465ed77521821583dbcdaa3c5.zip
media: cec: remove cec-edid.c
Move cec_get_edid_phys_addr() to cec-adap.c. It's not worth keeping a separate source for this. 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>
Diffstat (limited to 'drivers/media/cec/cec-edid.c')
-rw-r--r--drivers/media/cec/cec-edid.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/drivers/media/cec/cec-edid.c b/drivers/media/cec/cec-edid.c
deleted file mode 100644
index e2f54eec0829..000000000000
--- a/drivers/media/cec/cec-edid.c
+++ /dev/null
@@ -1,24 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0-only
-/*
- * cec-edid - HDMI Consumer Electronics Control EDID & CEC helper functions
- *
- * Copyright 2016 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
- */
-
-#include <linux/module.h>
-#include <linux/kernel.h>
-#include <linux/types.h>
-#include <media/cec.h>
-
-u16 cec_get_edid_phys_addr(const u8 *edid, unsigned int size,
- unsigned int *offset)
-{
- unsigned int loc = cec_get_edid_spa_location(edid, size);
-
- if (offset)
- *offset = loc;
- if (loc == 0)
- return CEC_PHYS_ADDR_INVALID;
- return (edid[loc] << 8) | edid[loc + 1];
-}
-EXPORT_SYMBOL_GPL(cec_get_edid_phys_addr);