From patchwork Thu Sep 13 12:49:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans Verkuil X-Patchwork-Id: 10599461 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CC738921 for ; Thu, 13 Sep 2018 12:49:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B97F62AA2F for ; Thu, 13 Sep 2018 12:49:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AB72C2AACE; Thu, 13 Sep 2018 12:49:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4BED52AA2F for ; Thu, 13 Sep 2018 12:49:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727534AbeIMR7J (ORCPT ); Thu, 13 Sep 2018 13:59:09 -0400 Received: from lb2-smtp-cloud9.xs4all.net ([194.109.24.26]:60306 "EHLO lb2-smtp-cloud9.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726570AbeIMR7I (ORCPT ); Thu, 13 Sep 2018 13:59:08 -0400 Received: from tschai.fritz.box ([212.251.195.8]) by smtp-cloud9.xs4all.net with ESMTPA id 0R44gaNiLMsEF0R48gLHt1; Thu, 13 Sep 2018 14:49:48 +0200 From: Hans Verkuil To: linux-media@vger.kernel.org Cc: Lars-Peter Clausen Subject: [PATCH 0/4] cec/v4l2: move v4l2-specific functions from cec to v4l2 Date: Thu, 13 Sep 2018 14:49:40 +0200 Message-Id: <20180913124944.39863-1-hverkuil@xs4all.nl> X-Mailer: git-send-email 2.18.0 X-CMAE-Envelope: MS4wfBzl7x56HBl6Dssyw/Xml8apO7OVYlU7ux8g4YptDAdKJu0ZUg10eFmfxXMOGtN/1u+/okhT5DZeJg7kHy7oPA4qnXjGc0E6NEsgYoRGY4R61uOER8db tj5+BEe4JJbiVc6RGdpD2KjQOikbZzI43NE7b4tuEpDhwMeLKkB9pg1jWm1EwK9pCOM8tBHH4Rb9TArtmrwE9oRvwDK3yToyeNc= Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Hans Verkuil Several cec functions that deal with parsing EDIDs and handling physical addresses where stubbed out if CEC_CORE was not configured. The problem with that is that those functions are needed, regardless of CEC, by receivers to validate the EDID. This patch series moves those functions out of the cec subsystem into the media subsystem: this only affects HDMI receivers, so the media subsystem is a much better place. This problem was reported by Lars-Peter Clausen. Regards, Hans Hans Verkuil (4): cec: make cec_get_edid_spa_location() an inline function cec: integrate cec_validate_phys_addr() in cec-api.c cec/v4l2: move V4L2 specific CEC functions to V4L2 cec: remove cec-edid.c drivers/media/cec/Makefile | 2 +- drivers/media/cec/cec-adap.c | 13 ++ drivers/media/cec/cec-api.c | 19 ++- drivers/media/cec/cec-edid.c | 155 ------------------ drivers/media/i2c/adv7604.c | 4 +- drivers/media/i2c/adv7842.c | 4 +- drivers/media/i2c/tc358743.c | 2 +- drivers/media/platform/vivid/vivid-vid-cap.c | 4 +- .../media/platform/vivid/vivid-vid-common.c | 2 +- drivers/media/v4l2-core/v4l2-dv-timings.c | 151 +++++++++++++++++ include/media/cec.h | 150 ++++++++--------- include/media/v4l2-dv-timings.h | 6 + 12 files changed, 267 insertions(+), 245 deletions(-) delete mode 100644 drivers/media/cec/cec-edid.c